EditingScope Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public ref class EditingScope : System::Activities::Presentation::Model::ModelEditingScope
public class EditingScope : System.Activities.Presentation.Model.ModelEditingScope
type EditingScope = class
inherit ModelEditingScope
Public Class EditingScope
Inherits ModelEditingScope
- Inheritance
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
Changes |
Gets a list of changes. |
Description |
Describes the group of changes. It can be changed anytime before the changes are committed. (Inherited from ModelEditingScope) |
Has |
Gets a Boolean that specifies whether changes have been applied to the editing scope. |
Can |
Determines whether the current editing scope instance can complete. |
Complete() |
Completes the editing scope by calling the OnComplete() method. (Inherited from ModelEditingScope) |
Dispose() |
Disposes of this object by aborting changes unless the editing scope has already been completed or reverted. (Inherited from ModelEditingScope) |
Dispose(Boolean) |
Disposes of this object by aborting changes. (Inherited from ModelEditingScope) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
On |
Raises the Complete event. |
On |
Handles the specified exception. |
On |
Raises the Revert event. |
Revert() |
Abandons the changes made during the editing scope. (Inherited from ModelEditingScope) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Produit | Versions |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :