Click or drag to resize
ProfileWriteValue Method (String, String, String, String)
Writes a string value to the profile using the supplied subkey for the given Driver ID and variable name.

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 6.0.0.0 (6.2.0.2774)
Syntax
public void WriteValue(
	string DriverID,
	string Name,
	string Value,
	string SubKey
)

Parameters

DriverID
Type: SystemString
ProgID of the device to read from
Name
Type: SystemString
Name of the variable whose value is retrieved
Value
Type: SystemString
The string value to be written
SubKey
Type: SystemString
Subkey from the profile root in which to write the value
Exceptions
ExceptionCondition
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
Remarks