在更改中构造一个在给定 GraphUpdatedEventArgs 中将要提交的撤消单元。
这在更新图表的过程中,将更新事件后期,因为在更改要撤消这些更改之前我们必须能够保存旧值。
命名空间: Microsoft.VisualStudio.GraphModel
程序集: Microsoft.VisualStudio.GraphModel(在 Microsoft.VisualStudio.GraphModel.dll 中)
语法
声明
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
)
参数
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。