DevicesToDeviceString Method |
Extension method that converts a
DeviceType enum value to a string
Namespace: ASCOM.DeviceInterfaceAssembly: ASCOM.DeviceInterfaces (in ASCOM.DeviceInterfaces.dll) Version: 6.0.0.0 (6.6.9999.9999)
Syntaxpublic static string ToDeviceString(
this DeviceType deviceType
)
<ExtensionAttribute>
Public Shared Function ToDeviceString (
deviceType As DeviceType
) As String
public:
[ExtensionAttribute]
static String^ ToDeviceString(
DeviceType deviceType
)
Parameters
- deviceType DeviceType
- Device type
Return Value
StringString 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
DeviceType. 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
See Also