ProfileUnRegister Method

Unregister an ASCOM device from the Profile.

Definition

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

Parameters

deviceType  DeviceTypes
ASCOM device type e.g. Telescope.
progId  String
COM ProgID of the driver

Remarks

This method will succeed (no exception will be thrown) regardless of whether or not the device is registered.

Exceptions

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

Version Information

.NET Standard

Supported in: 2.0

See Also