ProfileGetValue(String, String, String) Method

Retrieve a string value from the profile using the supplied sub-key for 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 string GetValue(
	string DriverID,
	string Name,
	string SubKey
)

Parameters

DriverID  String
ProgID of the device to read from
Name  String
Name of the variable whose value is retrieved
SubKey  String
Sub-key from the profile root from which to read the value

Return Value

String
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 double-word.

Exceptions

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

See Also