ObservingConditionsSensorDescription Method |
Namespace: ASCOM.DriverAccess
| Exception | Condition |
|---|---|
| MethodNotImplementedException | If the sensor is not implemented. |
| InvalidValueException | If an invalid property name parameter is supplied. |
| NotConnectedException | If the device is not connected. |
| DriverException | An error occurred that is not described by one of the more specific ASCOM exceptions. The device did not successfully complete the request. |
Must NOT throw a MethodNotImplementedException when the specified sensor is implemented but must throw a MethodNotImplementedException when the specified sensor is not implemented.
PropertyName must be the name of one of the sensor properties specified in the IObservingConditions interface. If the caller supplies some other value, throw an InvalidValueException.
If the sensor is implemented, this must return a valid string, even if the driver is not connected, so that applications can use this to determine what sensors are available.
If the sensor is not implemented, this must throw a MethodNotImplementedException.