ProfileGetValues(DeviceTypes, String, String) Method

Returns a dictionary of the named and unnamed values under the given sub-key from the device's profile root.

Definition

Namespace: ASCOM.Com
Assembly: ASCOM.Com (in ASCOM.Com.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static Dictionary<string, string> GetValues(
	DeviceTypes deviceType,
	string progId,
	string subKey
)

Parameters

deviceType  DeviceTypes
Device type e.g. Telescope.
progId  String
COM ProgID of the device.
subKey  String
Name of the sub-key from which to read the values.

Return Value

DictionaryString, String
Dictionary of name:value string pairs.

Exceptions

InvalidValueExceptionIf the ASCOM device type or COM progId are null, empty or just contain white space.
InvalidValueExceptionIf the device is not registered or is not a valid ASCOM device type.
InvalidValueExceptionIf the sub-key only contains white space.

Version Information

.NET Standard

Supported in: 2.0

See Also