Aborts the current exposure, if any, and returns the camera to Idle state.

Namespace: ASCOM.DeviceInterface
Assembly: ASCOM.DeviceInterfaces (in ASCOM.DeviceInterfaces.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
void AbortExposure()
Visual Basic
Sub AbortExposure
Visual C++
void AbortExposure()

Remarks

Must be implemented, must not throw a MethodNotImplementedException.

NOTES:

  • Must throw exception if camera is not idle and abort is unsuccessful (or not possible, e.g. during download).
  • Must throw exception if hardware or communications error occurs.
  • Must NOT throw an exception if the camera is already idle.

Exceptions

ExceptionCondition
ASCOM..::..NotConnectedExceptionThrown if the driver is not connected.
ASCOM..::..InvalidOperationExceptionThrown if abort is not currently possible (e.g. during download).
ASCOM..::..DriverExceptionThrown if a communications error occurs, or if the abort fails.

See Also