DevicesToDeviceType Method
Extension method that converts a string device name to a
AscomDeviceTypes enum value.
Namespace: ASCOM.UtilitiesAssembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 7.1.3+4851.c5da65c2b
public static AscomDeviceTypes ToDeviceType(
this string device
)
<ExtensionAttribute>
Public Shared Function ToDeviceType (
device As String
) As AscomDeviceTypes
public:
[ExtensionAttribute]
static AscomDeviceTypes ToDeviceType(
String^ device
)
- device String
- Device type
AscomDeviceTypesDeviceTypes enum value corresponding to the given string device nameIn Visual Basic and C#, you can call this method as an instance method on any object of type
String. 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).