DeviceCapabilitiesHasConnectAndDeviceState(NullableDeviceTypes, Int32) Method

Returns if the interface version of the specified device type supports Connect / Disconnect and DeviceState

Definition

Namespace: ASCOM.Common.DeviceInterfaces
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 2.2.1+77356f79b05b579f6d860a4edd5934fda9fe29e4
C#
public static bool HasConnectAndDeviceState(
	DeviceTypes? deviceType,
	int interfaceVersion
)

Parameters

deviceType  NullableDeviceTypes
Device type.
interfaceVersion  Int32
Interface version of this device (Int32)

Return Value

Boolean
when the interface version supports Connect / Disconnect

Exceptions

InvalidValueExceptionWhen deviceType is null.
InvalidValueExceptionWhen interfaceVersion is 0 or negative.

Version Information

.NET Standard

Supported in: 2.0

See Also