ProfileWriteValue(String, String, String) Method

Writes a string value to the profile using 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
)

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

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.

Exceptions

InvalidValueExceptionThrown if DriverID is an empty string.
DriverNotRegisteredExceptionThrown if the driver is not registered,

See Also