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

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

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
Exceptions
ExceptionCondition
InvalidValueExceptionThrown if DriverID is an empty string.
DriverNotRegisteredExceptionThrown if the driver is not registered,
Remarks
This overload is not available through COM, please use "WriteValue(ByVal DriverID As String, ByVal Name As String, ByVal Value As String, ByVal SubKey As String)" with SubKey set to empty string achieve this effect.
See Also