ProfileWriteValue(String, String, String, String) Method

Writes a string value to the profile using the supplied sub-key for the given Driver ID and variable name.

Definition

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 7.1.3+4851.c5da65c2b
C#
public void WriteValue(
	string DriverID,
	string Name,
	string Value,
	string SubKey
)

Parameters

DriverID  String
ProgID of the device to write to
Name  String
Name of the variable whose value is to be written
Value  String
The string value to be written
SubKey  String
Sub-key from the profile root in which to write the value

Implements

IProfileWriteValue(String, String, String, String)

Exceptions

InvalidValueExceptionThrown if DriverID is an empty string.
DriverNotRegisteredExceptionThrown if the driver is not registered,
RestrictedAccessExceptionThrown if Name and SubKey are both empty strings. This value is reserved for the device description as it appears in Chooser and is set by Profile.Register

See Also