CancellationListener Class


Allows clients to poll the cancellation status of a background operation. Revit instantiates CancellationListener objects for internal background operation implementations only. As such, third-party developers are not expected to instantiate or handle CancellationListener objects.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2017

Syntax

C#
public class CancellationListener : IDisposable
Visual Basic
Public Class CancellationListener _
	Implements IDisposable
Visual C++
public ref class CancellationListener : IDisposable

Inheritance Hierarchy

SystemObject
  Autodesk.Revit.DBCancellationListener

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →