ModelEditingScope Class

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

Namespace:   System.Activities.Presentation.Model
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

System::Object
  System.Activities.Presentation.Model::ModelEditingScope
    System.Activities.Presentation.Model::EditingScope

public ref class ModelEditingScope abstract : IDisposable

NameDescription
System_CAPS_protmethodModelEditingScope()

Creates a new ModelEditingScope.

NameDescription
System_CAPS_pubpropertyDescription

Describes the group of changes. It can be changed anytime before the changes are committed.

NameDescription
System_CAPS_protmethodCanComplete()

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.

System_CAPS_pubmethodComplete()

Completes the editing scope by calling the OnComplete method.

System_CAPS_pubmethodDispose()

Disposes of this object by aborting changes unless the editing scope has already been completed or reverted.

System_CAPS_protmethodDispose(Boolean)

Disposes of this object by aborting changes.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnComplete()

Performs the actual complete of the editing scope.

System_CAPS_protmethodOnException(Exception^)

Handles an exception.

System_CAPS_protmethodOnRevert(Boolean)

Performs the actual revert of the editing scope.

System_CAPS_pubmethodRevert()

Abandons the changes made during the editing scope.

System_CAPS_pubmethodToString()

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.

.NET Framework
Available since 4.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: