Share via


GraphUndoUnit Constructor

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

Construct an undo unit from the changes that are about to be committed in the given GraphUpdatedEventArgs.

This has to be called during the Graph Updating, the Updated event is too late because we must be able to save the old values before the changes are committed in order to be able to undo those changes.

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

Syntax

'Declaration
Public Sub New ( _
    graph As Graph, _
    changes As GraphUpdatedEventArgs _
)
public GraphUndoUnit(
    Graph graph,
    GraphUpdatedEventArgs changes
)
public:
GraphUndoUnit(
    Graph^ graph, 
    GraphUpdatedEventArgs^ changes
)
new : 
        graph:Graph * 
        changes:GraphUpdatedEventArgs -> GraphUndoUnit
public function GraphUndoUnit(
    graph : Graph, 
    changes : GraphUpdatedEventArgs
)

Parameters

.NET Framework Security

See Also

Reference

GraphUndoUnit Class

Microsoft.VisualStudio.GraphModel Namespace