Retrieve a string value from the profile using the supplied subkey for the given Driver ID and variable name.

Namespace: ASCOM.Utilities.Interfaces
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
string GetValue(
	string DriverID,
	string Name,
	string SubKey
)
Visual Basic
Function GetValue ( _
	DriverID As String, _
	Name As String, _
	SubKey As String _
) As String
Visual C++
String^ GetValue(
	String^ DriverID, 
	String^ Name, 
	String^ SubKey
)

Parameters

DriverID
Type: System..::..String
ProgID of the device to read from
Name
Type: System..::..String
Name of the variable whose value is retrieved
SubKey
Type: System..::..String
Subkey from the profile root from which to read the value

Return Value

Retrieved variable value

Remarks

Name may be an empty string for the unnamed value. The unnamed value is also known as the "default" value for a registry key.

Does not provide access to other registry data types such as binary and doubleword.

See Also