ProfileSetValue(DeviceTypes, String, String, String, String) Method

Set a value in the device's registry Profile.

Definition

Namespace: ASCOM.Com
Assembly: ASCOM.Com (in ASCOM.Com.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static void SetValue(
	DeviceTypes deviceType,
	string progId,
	string valueName,
	string value,
	string subkey
)

Parameters

deviceType  DeviceTypes
Device type e.g. Telescope.
progId  String
COM ProgID of the device.
valueName  String
Name of this parameter.
value  String
Value to be set.
subkey  String
Name of the sub-key under which to place this value.

Exceptions

InvalidValueExceptionIf device type, progId, name or value are null or invalid.
InvalidValueExceptionIf the sub-key only contains white space.

Version Information

.NET Standard

Supported in: 2.0

See Also