This document is archived and information here might be outdated. Recommended version. |
Provides access to members that indicate if an operation has been cancelled.
ICancelOperation can be implemented by custom classes in order to provide cancellation functionality to long operations, particularly those on the IFeatureConstruction interface. Several methods on that interface accept an ICancelOperation parameter (which is often left null); if a custom class that implements this interface is passed in as that parameter, changes to that class which modify the return value of the IsCancelled property to True will allow the operations to be cancelled (with an error being raised by the operation).
Name | Description | |
---|---|---|
IsCancelled | Indicates if the operation has been cancelled. |
CoClasses and Classes | Description |
---|
Passing an object that implements this interface to a long operation is only useful in a multithreaded application. Calls to long operations, such as those defined by IFeatureConstruction, are blocking and a different thread is required to trigger the cancel operation on the custom object.