DevicesToDeviceString Method

Extension method that converts a AscomDeviceTypes enum value to a string

Definition

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 7.1.3+4851.c5da65c2b
C#
public static string ToDeviceString(
	this AscomDeviceTypes deviceType
)

Parameters

deviceType  AscomDeviceTypes
Device type

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type AscomDeviceTypes. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

InvalidValueExceptionIf the supplied device type is not valid.

See Also