DevicesToDeviceString Method

Extension method that converts a DeviceTypes enum value to a string

Definition

Namespace: ASCOM.Common
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 2.2.1+77356f79b05b579f6d860a4edd5934fda9fe29e4
C#
public static string ToDeviceString(
	this DeviceTypes deviceType
)

Parameters

deviceType  DeviceTypes
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 DeviceTypes. 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.

Version Information

.NET Standard

Supported in: 2.0

See Also