UndoableGraphTransactionScope Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

This is a special graph transaction scope that can be used for undoable edits (that appear in the host application undo stack).


Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

public class UndoableGraphTransactionScope : GraphTransactionScope

The UndoableGraphTransactionScope type exposes the following members.

Public methodUndoableGraphTransactionScope(String)Construct a new UndoableGraphTransactionScope
Public methodUndoableGraphTransactionScope(UndoOption)Construct a new UndoableGraphTransactionScope
Public methodUndoableGraphTransactionScope(Object, UndoOption)Construct a new UndoableGraphTransactionScope
Public methodUndoableGraphTransactionScope(Object, String, UndoOption)Construct a new UndoableGraphTransactionScope

Public propertyScopePropertiesThe property bag associated with this scope. (Inherited from GraphTransactionScope.)

Public methodCompleteMark us as completed. Dispose will check this and if this wasn't called, the transaction will abort. (Inherited from GraphTransactionScope.)
Public methodDispose()IDisposable.Dispose. (Inherited from GraphTransactionScope.)
Protected methodDispose(Boolean) (Overrides GraphTransactionScope.Dispose(Boolean).)
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberGetUndoDescriptionGet the undo description from the given transaction scope properties.
Public methodStatic memberGetUndoIdGet the Id associated with the given GraphTransactionEnlistment
Public methodStatic memberGetUndoOptionGet the UndoOption associated from the given transaction scope properties.
Public methodStatic memberIsForceAddGet if the transaction is marked as "force add", which will create an undo unit even if it is empty.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Public eventDisposedWill be notified when this scope is disposed

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft