This document is archived and information here might be outdated.  Recommended version.


ITrackCancel.Continue Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (System)  

ITrackCancel.Continue Method

Called frequently while associated operation is progressing. A return value of false indicates that the operation should stop.

[Visual Basic .NET]
Public Function Continue ( _
) As Boolean
[C#]
public bool Continue (
);
[C++]
HRESULT Continue(
  VARIANT_BOOL* keepGoing
);
[C++]

Parameters keepGoing [out, retval] keepGoing is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The Continue method should be called to check whether the user has cancelled the operation. By default a cancel will occur under the following circumstances:

If any of these actions occur, the ITrackCancel::Continue method will return false. The logic of the operation should use this indicator to cancel the operation.

The Continue method is only valid during the operation to which it applies, therefore for a drawing operation it can be used in OnBeforeScreenDraw, OnAfterDraw and onAfterScreenDraw event handlers.

A cancelled drawing operation cannot be continued, but you can use the Continue method to determine that the current operation was cancelled and refresh the map if necessary.

See Also

ITrackCancel Interface

.NET Snippets

Show Progress Dialog