Click or drag to resize

ObservingConditionsTimeSinceLastUpdate Method

Provides the time since the sensor value was last updated

Namespace:  ASCOM.DriverAccess
Assembly:  ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 3351c4f3fa64146a7efd5b51ed4591e32a0a5484
Syntax
public double TimeSinceLastUpdate(
	string PropertyName
)

Parameters

PropertyName
Type: SystemString
Name of the property whose time since last update is required

Return Value

Type: Double
Time in seconds since the last sensor update for this property

Implements

IObservingConditionsTimeSinceLastUpdate(String)
Exceptions
ExceptionCondition
MethodNotImplementedExceptionIf the sensor is not implemented.
InvalidValueExceptionIf an invalid property name parameter is supplied.
NotConnectedExceptionIf the device is not connected.
DriverExceptionAn error occurred that is not described by one of the more specific ASCOM exceptions. The device did not successfully complete the request.
Remarks

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.

Return a negative value to indicate that no valid value has ever been received from the hardware.

If an empty string is supplied as the PropertyName, the driver must return the time since the most recent update of any sensor. A MethodNotImplementedException must not be thrown in this circumstance.

See Also