ProfileGetSubKeys(DeviceTypes, String, String) Method

Returns a list of the sub-keys under the given sub-key from the profile root.

Definition

Namespace: ASCOM.Com
Assembly: ASCOM.Com (in ASCOM.Com.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
C#
public static List<string> GetSubKeys(
	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 sub-keys.

Return Value

ListString
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

Supported in: .NET Standard 2.0, .NET 8 .NET 9. .NET 10

See Also