ProfileRegister Method

Register an ASCOM device in the profile

Definition

Namespace: ASCOM.Com
Assembly: ASCOM.Com (in ASCOM.Com.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static void Register(
	DeviceTypes deviceType,
	string progId,
	string description
)

Parameters

deviceType  DeviceTypes
ASCOM device type e.g. Telescope.
progId  String
COM ProgID of the driver
description  String
Device description that will appear in the Chooser list.

Exceptions

InvalidValueExceptionIf the ASCOM device type or COM progId are null, empty or just contain white space.
InvalidValueExceptionIf the device is not a valid ASCOM device type.

Version Information

.NET Standard

Supported in: 2.0

See Also