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: 6.0.0.0 (6.3.0.2839)
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