Delen via


UndoableGraphTransactionScope Constructor (Object, String, UndoOption)

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

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: System.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: System.String

    The user displayable string description

.NET Framework Security

See Also

Reference

UndoableGraphTransactionScope Class

UndoableGraphTransactionScope Overload

Microsoft.VisualStudio.GraphModel Namespace