Percent conpleted, Interface Version 2 only

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

Syntax

C#
public short PercentCompleted { get; }
Visual Basic
Public ReadOnly Property PercentCompleted As Short
	Get
Visual C++
public:
virtual property short PercentCompleted {
	short get () sealed;
}

Return Value

A value between 0 and 100% indicating the completeness of this operation

Implements

ICameraV2..::..PercentCompleted

Remarks

If valid, returns an integer between 0 and 100, where 0 indicates 0% progress (function just started) and 100 indicates 100% progress (i.e. completion).

At the discretion of the driver author, PercentCompleted may optionally be valid when CameraState is in any or all of the following states: cameraExposing, cameraWaiting, cameraReading or cameraDownload. In all other states an exception shall be thrown.

Typically the application user interface will show a progress bar based on the PercentCompleted value.

Please note that client applications are not required to use this value, and in some cases may display status information based on other information, such as time elapsed.

This is only available for the Camera Interface Version 2

Exceptions

ExceptionCondition
ASCOM..::..InvalidOperationExceptionThrown when it is inappropriate to call PercentCompleted

See Also