Click or drag to resize

DeviceIdAttribute Constructor

Initializes a new instance of the DeviceIdAttribute class.

Namespace:  ASCOM
Assembly:  ASCOM.Attributes (in ASCOM.Attributes.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
Syntax
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