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
- graph
Type: Microsoft.VisualStudio.GraphModel.Graph
- changes
Type: Microsoft.VisualStudio.GraphModel.GraphUpdatedEventArgs
.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.