Partager via


UndoableGraphTransactionScope Class

Definition

This is a special graph transaction scope designed to be used for undoable edits (that show up in the host application undo stack).

public ref class UndoableGraphTransactionScope : Microsoft::VisualStudio::GraphModel::GraphTransactionScope
public class UndoableGraphTransactionScope : Microsoft.VisualStudio.GraphModel.GraphTransactionScope
type UndoableGraphTransactionScope = class
    inherit GraphTransactionScope
Public Class UndoableGraphTransactionScope
Inherits GraphTransactionScope
Inheritance
UndoableGraphTransactionScope

Constructors

UndoableGraphTransactionScope(Object, String, UndoOption)

Construct a new UndoableGraphTransactionScope

UndoableGraphTransactionScope(Object, UndoOption)

Construct a new UndoableGraphTransactionScope

UndoableGraphTransactionScope(String)

Construct a new UndoableGraphTransactionScope

UndoableGraphTransactionScope(UndoOption)

Construct a new UndoableGraphTransactionScope

Fields

ActiveTransactionsChanged

Notifies when the number of active transaction is changing.

DisableUndo
ForceAddKey
NonDisabledTransactionCount
UndoDescriptionKey
UndoOptionKey

Properties

ExtraData

Extra data to save in TLS

(Inherited from GraphTransactionScope)
NonDisabledTransactions

Returns the number of the non-disabled active transcations associated with the thread that this transaction scope was created on

ScopeProperties

The property bag associated with this scope.

(Inherited from GraphTransactionScope)

Methods

Complete()

Mark us as complete. Dispose will check this and if this wasn't called, the transaction will abort.

(Inherited from GraphTransactionScope)
Dispose()

IDisposable.Dispose.

(Inherited from GraphTransactionScope)
Dispose(Boolean)
GetUndoDescription(Dictionary<Object,Object>)

Get the undo description from the given transaction scope properties.

GetUndoId(Dictionary<Object,Object>)

Get the Id associated with the given GraphTransactionEnlistment

GetUndoOption(Dictionary<Object,Object>)

Get the UndoOption associated from the given transaction scope properties.

IsForceAdd(Dictionary<Object,Object>)

Get if the transaction is marked as "force add", which will create an undo unit even if it's empty.

OnActiveTransactionsChanged(Int32, Int32)

Events

Disposed

Will be notified when this scope is disposed

Applies to