Removes all triggers associated with specified document and Updater
Does not unregister updater.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2011
Syntax
| C# |
|---|
public static void RemoveDocumentTriggers( UpdaterId id, Document document ) |
| Visual Basic |
|---|
Public Shared Sub RemoveDocumentTriggers ( _ id As UpdaterId, _ document As Document _ ) |
| Visual C++ |
|---|
public: static void RemoveDocumentTriggers( UpdaterId^ id, Document^ document ) |
Parameters
- id
- Type: Autodesk.Revit.DB..::..UpdaterId
Id of specified updater
- document
- Type: Autodesk.Revit.DB..::..Document
Document for which to remove triggers
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |
| Autodesk.Revit.Exceptions..::..InvalidOperationException | The updater's owner's AddIn does not match the currently active AddIn. -or- RemoveDocumentTriggers called while executing an updater. |