ModelEditingScope Class
Represents a group of changes to the editing store. Change groups are transactional. The changes made under an editing scope can be committed or aborted as a unit.
System.Activities.Presentation.Model::ModelEditingScope
System.Activities.Presentation.Model::EditingScope
Assembly: System.Activities.Presentation (in System.Activities.Presentation.dll)
The ModelEditingScope type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Description | Describes the group of changes. It can be changed anytime before the changes are committed. |
| Name | Description | |
|---|---|---|
![]() | CanComplete | Determines whether OnComplete() should be called, or whether the change should instead be reverted. Reasons for reverting might include a file cannot be checked out of a source control system for modification. |
![]() | Complete | Completes the editing scope by calling the OnComplete() method. |
![]() | Dispose() | Disposes of this object by aborting changes unless the editing scope has already been completed or reverted. |
![]() | Dispose(Boolean) | Disposes of this object by aborting changes. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnComplete | Performs the actual complete of the editing scope. |
![]() | OnException | Handles an exception. |
![]() | OnRevert | Performs the actual revert of the editing scope. |
![]() | Revert | Abandons the changes made during the editing scope. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
When an editing scope is committed, the editing store takes all changes that occurred within it and applies them to the model. If the editing scope’s Revert() method is called, or the editing scope is disposed of before Complete() is called, the editing scope will instead reverse the changes made to the underlying objects, reapplying state from the editing store. This provides a solid basis for an undo mechanism.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
