Devices Class

Device type name functions

Definition

Namespace: ASCOM.Common
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
C#
public static class Devices
Inheritance
Object    Devices

Methods

DeviceTypeList Returns a list of valid ASCOM device types
DeviceTypeNames Returns a list of valid ASCOM device type names
DeviceTypeToString Convert a DeviceTypes enum value to a string
IsValidDeviceType Confirms that the supplied device type is a valid ASCOM device type.
IsValidDeviceTypeName Confirms that the supplied device type string name is valid
StringToDeviceType Convert a string device name to a DeviceTypes enum value.
ToDeviceString Extension method that converts a DeviceTypes enum value to a string
ToDeviceType Extension method that converts a string device name to a DeviceTypes enum value.

Version Information

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

See Also