UndoableGraphTransactionScope Constructors

Definition

Overloads

UndoableGraphTransactionScope(UndoOption)

Construct a new UndoableGraphTransactionScope

UndoableGraphTransactionScope(String)

Construct a new UndoableGraphTransactionScope

UndoableGraphTransactionScope(Object, UndoOption)

Construct a new UndoableGraphTransactionScope

UndoableGraphTransactionScope(Object, String, UndoOption)

Construct a new UndoableGraphTransactionScope

UndoableGraphTransactionScope(UndoOption)

Construct a new UndoableGraphTransactionScope

public:
 UndoableGraphTransactionScope(Microsoft::VisualStudio::GraphModel::UndoOption option);
public UndoableGraphTransactionScope (Microsoft.VisualStudio.GraphModel.UndoOption option);
new Microsoft.VisualStudio.GraphModel.UndoableGraphTransactionScope : Microsoft.VisualStudio.GraphModel.UndoOption -> Microsoft.VisualStudio.GraphModel.UndoableGraphTransactionScope
Public Sub New (option As UndoOption)

Parameters

option
UndoOption

Option on how the change should be handled on the application undo stack

Applies to

UndoableGraphTransactionScope(String)

Construct a new UndoableGraphTransactionScope

public:
 UndoableGraphTransactionScope(System::String ^ undoDescription);
public UndoableGraphTransactionScope (string undoDescription);
new Microsoft.VisualStudio.GraphModel.UndoableGraphTransactionScope : string -> Microsoft.VisualStudio.GraphModel.UndoableGraphTransactionScope
Public Sub New (undoDescription As String)

Parameters

undoDescription
String

The user displayable string description

Applies to

UndoableGraphTransactionScope(Object, UndoOption)

Construct a new UndoableGraphTransactionScope

public:
 UndoableGraphTransactionScope(System::Object ^ undoUnitId, Microsoft::VisualStudio::GraphModel::UndoOption option);
public UndoableGraphTransactionScope (object undoUnitId, Microsoft.VisualStudio.GraphModel.UndoOption option);
new Microsoft.VisualStudio.GraphModel.UndoableGraphTransactionScope : obj * Microsoft.VisualStudio.GraphModel.UndoOption -> Microsoft.VisualStudio.GraphModel.UndoableGraphTransactionScope
Public Sub New (undoUnitId As Object, option As UndoOption)

Parameters

undoUnitId
Object

The id of the undoable action, should not be a System.String object

option
UndoOption

Option on how the change should be handled on the application undo stack

Applies to

UndoableGraphTransactionScope(Object, String, UndoOption)

Construct a new UndoableGraphTransactionScope

public:
 UndoableGraphTransactionScope(System::Object ^ undoUnitId, System::String ^ undoDescription, Microsoft::VisualStudio::GraphModel::UndoOption option);
public UndoableGraphTransactionScope (object undoUnitId, string undoDescription, Microsoft.VisualStudio.GraphModel.UndoOption option);
new Microsoft.VisualStudio.GraphModel.UndoableGraphTransactionScope : obj * string * Microsoft.VisualStudio.GraphModel.UndoOption -> Microsoft.VisualStudio.GraphModel.UndoableGraphTransactionScope
Public Sub New (undoUnitId As Object, undoDescription As String, option As UndoOption)

Parameters

undoUnitId
Object

The id of the undoable action, should not be a System.String object because string equality doesn't honor object identity, therefore UndoOption.Merge of these items could result in unintended behavior where undo units merge when you didn't expect them to. The object identify of the undoUnitId is the deciding factor for determining which undo units to merge.

undoDescription
String

The user displayable string description

option
UndoOption

Option on how the change should be handled on the application undo stack

Applies to