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: 4.1.0+517b408ca408f7a19aace78c1509f524714a3a13
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

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

See Also