Cancels the edit scope.
Namespace: Autodesk.Revit.DB.VisualAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public void Cancel()
Exceptions
| Exception | Condition |
|---|
| InvalidOperationException |
EditScope is not active. EditScope can only be committed or cancelled when it is active.
-or-
EditScope cannot be closed, there is no opened transaction.
|
Remarks
All the changes made after starting the EditScope will be discarded.
See Also
Reference