DeviceIdAttribute Constructor |
Namespace:
ASCOM
Assembly:
ASCOM.Attributes (in ASCOM.Attributes.dll) Version: 3351c4f3fa64146a7efd5b51ed4591e32a0a5484
Syntaxpublic DeviceIdAttribute(
string deviceId
)
Public Sub New (
deviceId As String
)
public:
DeviceIdAttribute(
String^ deviceId
)
Parameters
- deviceId
- Type: SystemString
The ASCOM device ID (aka COM ProgID) to be associated with the class.
Remarks
Recommended usage is:
Examples
[DeviceId("ASCOM.SuperDuper.Telescope", DeviceName="SuperDuper Deluxe")]
In the event that the DeviceName optional parameter is not set, it will return the DeviceId.
See Also