Requests to cancel the progress bar's operation.
Namespace: Autodesk.Revit.DB.EventsAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2013
Syntax
C# |
---|
public void Cancel() |
Visual Basic |
---|
Public Sub Cancel |
Visual C++ |
---|
public: void Cancel() |
Remarks
Note that an operation may only be cancelled if its stage is
'Unchanged' or if its stage is 'PositionChanged' and the 'Cancellable' property is 'true.'
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..InvalidOperationException | The operation cannot be cancelled. |