DeviceIdAttribute Constructor

Initializes a new instance of the DeviceIdAttribute class.

Definition

Namespace: ASCOM
Assembly: ASCOM.Attributes (in ASCOM.Attributes.dll) Version: 7.1.3+4851.c5da65c2b
C#
public DeviceIdAttribute(
	string deviceId
)

Parameters

deviceId  String
The ASCOM device ID (aka COM ProgID) to be associated with the class.

Remarks

Recommended usage is:

Example

[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