Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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 
- option 
 Type: Microsoft.VisualStudio.GraphModel.UndoOption- Option on how the change should be handled on the application undo stack 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
UndoableGraphTransactionScope Class