Click or drag to resize

ProfileGetValue Method (String, String)

Retrieve a string value from the profile for the given Driver ID and variable name

Namespace:  ASCOM.Utilities
Assembly:  ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
public string GetValue(
	string DriverID,
	string Name


Type: SystemString
ProgID of the device to read from
Type: SystemString
Name of the variable whose value is retrieved

Return Value

Type: String
Retrieved variable value
InvalidValueExceptionThrown if DriverID is an empty string.
DriverNotRegisteredExceptionThrown if the driver is not registered,

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.

This overload is not available through COM, please use "GetValue(ByVal DriverID As String, ByVal Name As String, ByVal SubKey As String)" with SubKey set to empty string achieve this effect.

See Also