DeviceCapabilitiesIsValidAscomInterface Method

Returns if the interface version of the specified device type is a valid ASCOM interface version on any Platform

Definition

Namespace: ASCOM.Common.DeviceInterfaces
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
C#
public static bool IsValidAscomInterface(
	DeviceTypes? deviceType,
	int interfaceVersion
)

Parameters

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

Return Value

Boolean
when the interface version is a Platform 6 interface version.

Remarks

Supply an interface version of 1 (valid) rather than zero (invalid) for very early drivers that do not have an InterfaceVersion property.

Exceptions

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

Version Information

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

See Also