ProfileIsRegistered Method

Tests whether a given device is registered in the ASCOM Profile.

Definition

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

Parameters

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

Return Value

Boolean
if the device is registered, otherwise returns .

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