Share via


UndoableGraphTransactionScope Constructor (Object, String, UndoOption)

Construct a new UndoableGraphTransactionScope

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

Syntax

'Declaration
Public Sub New ( _
    undoUnitId As Object, _
    undoDescription As String, _
    option As UndoOption _
)
public UndoableGraphTransactionScope(
    Object undoUnitId,
    string undoDescription,
    UndoOption option
)
public:
UndoableGraphTransactionScope(
    Object^ undoUnitId, 
    String^ undoDescription, 
    UndoOption option
)
new : 
        undoUnitId:Object * 
        undoDescription:string * 
        option:UndoOption -> UndoableGraphTransactionScope
public function UndoableGraphTransactionScope(
    undoUnitId : Object, 
    undoDescription : String, 
    option : UndoOption
)

Parameters

  • undoUnitId
    Type: Object

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

  • undoDescription
    Type: String

    The user displayable string description

.NET Framework Security

See Also

Reference

UndoableGraphTransactionScope Class

UndoableGraphTransactionScope Overload

Microsoft.VisualStudio.GraphModel Namespace