ChooserDeviceType Property

The type of device for which the Chooser will select a driver. (String, default = "Telescope")

Definition

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 7.1.3+4851.c5da65c2b
C#
public string DeviceType { get; set; }

Property Value

String
The type of device for which the Chooser will select a driver. (String, default = "Telescope")

Return Value

String
The device type that has been set

Remarks

This property changes the "personality" of the Chooser, allowing it to be used to select a driver for any arbitrary ASCOM device type. The default value for this is "Telescope", but it could be "Focuser", "Camera", etc.

This property is independent of the Profile object's DeviceType property. Setting Chooser's DeviceType property doesn't set the DeviceType property in Profile, you must set that also when needed.

Exceptions

InvalidValueExceptionThrown on setting the device type to empty string

See Also