DevicesDeviceTypeToString Method

Convert a DeviceTypes enum value to a string

Definition

Namespace: ASCOM.Common
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
C#
public static string DeviceTypeToString(
	DeviceTypes deviceType
)

Parameters

deviceType  DeviceTypes
Device type

Return Value

String
String device type name corresponding to the given DeviceTypes enum value

Exceptions

InvalidValueExceptionIf the supplied device type is not valid.

Version Information

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

See Also