ChooserSADeviceType Property

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

Definition

Namespace: ASCOM.Com
Assembly: ASCOM.Com.ChooserSA (in ASCOM.Com.ChooserSA.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public DeviceTypes DeviceType { get; set; }

Property Value

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

Return Value

DeviceTypes
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

Version Information

.NET

Supported in: .NET 8.0 and later

See Also