Initializes a new instance of the DeviceIdAttribute class.

Namespace: ASCOM
Assembly: ASCOM.Attributes (in ASCOM.Attributes.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public DeviceIdAttribute(
	string deviceId
)
Visual Basic
Public Sub New ( _
	deviceId As String _
)
Visual C++
public:
DeviceIdAttribute(
	String^ deviceId
)

Parameters

deviceId
Type: System..::..String
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