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.1.1.2619)

Syntax

C#
public void WriteValue(
	string DriverID,
	string Name,
	string Value
)
Visual Basic
Public Sub WriteValue ( _
	DriverID As String, _
	Name As String, _
	Value As String _
)
Visual C++
public:
virtual void WriteValue(
	String^ DriverID, 
	String^ Name, 
	String^ Value
) sealed

Parameters

DriverID
Type: System..::..String
ProgID of the device to read from
Name
Type: System..::..String
Name of the variable whose value is retrieved
Value
Type: System..::..String
The string value to be written

Implements

IProfileExtra..::..WriteValue(String, String, String)

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

ExceptionCondition
ASCOM.Utilities.Exceptions..::..InvalidValueExceptionThrown if DriverID is an empty string.
ASCOM.Utilities.Exceptions..::..DriverNotRegisteredExceptionThrown if the driver is not registered,

See Also