DevicesHasConnectAndDeviceState(AscomDeviceTypes, Int32) Method

Returns if the device has a Platform 7 or later interface that supports Connect / Disconnect and DeviceState

Definition

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 7.1.3+4851.c5da65c2b
C#
public static bool HasConnectAndDeviceState(
	AscomDeviceTypes deviceType,
	int driverInterfaceVersion
)

Parameters

deviceType  AscomDeviceTypes
Device type.
driverInterfaceVersion  Int32
Interface version of this driver (Int16)

Return Value

Boolean
True if the feature is supported

Exceptions

InvalidValueExceptionIf the device type is not one of the standard ASCOM device types.

See Also