EditingScope Class

.NET Framework (current version)
 

An editing scope represents a collection of changes to the ModelItem tree that can be committed or rolled back as one atomic unit of work.

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 class EditingScope : ModelEditingScope

NameDescription
System_CAPS_pubpropertyChanges

Gets a list of changes.

System_CAPS_pubpropertyDescription

Describes the group of changes. It can be changed anytime before the changes are committed.(Inherited from ModelEditingScope.)

System_CAPS_pubpropertyHasEffectiveChanges

Gets a Boolean that specifies whether changes have been applied to the editing scope.

NameDescription
System_CAPS_protmethodCanComplete()

Determines whether the current editing scope instance can complete.(Overrides ModelEditingScope.CanComplete().)

System_CAPS_pubmethodComplete()

Completes the editing scope by calling the OnComplete method.(Inherited from ModelEditingScope.)

System_CAPS_pubmethodDispose()

Disposes of this object by aborting changes unless the editing scope has already been completed or reverted.(Inherited from ModelEditingScope.)

System_CAPS_protmethodDispose(Boolean)

Disposes of this object by aborting changes.(Inherited from ModelEditingScope.)

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()

Raises the Complete event.(Overrides ModelEditingScope.OnComplete().)

System_CAPS_protmethodOnException(Exception)

Handles the specified exception.(Overrides ModelEditingScope.OnException(Exception).)

System_CAPS_protmethodOnRevert(Boolean)

Raises the Revert event.(Overrides ModelEditingScope.OnRevert(Boolean).)

System_CAPS_pubmethodRevert()

Abandons the changes made during the editing scope.(Inherited from ModelEditingScope.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

This is useful for batching together a set of changes to multiple ModelItem objects. As an example, in the messaging activities, the changes made from the raised dialogs will impact multiple property values. However, as all of the changes come from the raised dialog, the changes need to be considered as a batch and undone as a single unit of work. For more details on usage, see the Editing Scope sample

.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: