Click or drag to resize

ProfileWriteValue(String, String, String) Method

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.6.9999.9999)
Syntax
public void WriteValue(
	string DriverID,
	string Name,
	string Value
)

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
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