Delen via


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

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.GraphModel.GraphTransactionScope
    Microsoft.VisualStudio.GraphModel.UndoableGraphTransactionScope

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

Syntax

'Declaration
Public Class UndoableGraphTransactionScope _
    Inherits GraphTransactionScope
public class UndoableGraphTransactionScope : GraphTransactionScope
public ref class UndoableGraphTransactionScope : public GraphTransactionScope
type UndoableGraphTransactionScope =  
    class 
        inherit GraphTransactionScope 
    end
public class UndoableGraphTransactionScope extends GraphTransactionScope

The UndoableGraphTransactionScope type exposes the following members.

Constructors

  Name Description
Public method UndoableGraphTransactionScope(String) Construct a new UndoableGraphTransactionScope
Public method UndoableGraphTransactionScope(UndoOption) Construct a new UndoableGraphTransactionScope
Public method UndoableGraphTransactionScope(Object, UndoOption) Construct a new UndoableGraphTransactionScope
Public method UndoableGraphTransactionScope(Object, String, UndoOption) Construct a new UndoableGraphTransactionScope

Top

Properties

  Name Description
Public property ScopeProperties The property bag associated with this scope. (Inherited from GraphTransactionScope.)

Top

Methods

  Name Description
Public method Complete Mark us as completed. Dispose will check this and if this wasn't called, the transaction will abort. (Inherited from GraphTransactionScope.)
Public method Dispose() IDisposable.Dispose. (Inherited from GraphTransactionScope.)
Protected method Dispose(Boolean) (Overrides GraphTransactionScope.Dispose(Boolean).)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member GetUndoDescription Get the undo description from the given transaction scope properties.
Public methodStatic member GetUndoId Get the Id associated with the given GraphTransactionEnlistment
Public methodStatic member GetUndoOption Get the UndoOption associated from the given transaction scope properties.
Public methodStatic member IsForceAdd Get if the transaction is marked as "force add", which will create an undo unit even if it is empty.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event Disposed Will be notified when this scope is disposed

Top

Fields

  Name Description
Public fieldStatic member DisableUndo
Public fieldStatic member ForceAddKey
Public fieldStatic member UndoDescriptionKey
Public fieldStatic member UndoOptionKey

Top

Thread Safety

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

See Also

Reference

Microsoft.VisualStudio.GraphModel Namespace