ProfileCreateSubKey Method

Creates a sub-key under the device's Profile root. Nested sub-keys can be created by separating levels with "\" characters in the sub-key string.

Definition

Namespace: ASCOM.Com
Assembly: ASCOM.Com (in ASCOM.Com.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
C#
public static void CreateSubKey(
	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 to create based from the device's profile root.

Exceptions

InvalidValueExceptionIf device type or progId are null or invalid.
InvalidValueExceptionIf the sub-key only contains white space.
InvalidOperationExceptionIf the Device's Profile root key cannot be opened for writing.

Version Information

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

See Also