共用方式為


GraphUndoUnit 建構函式

從即將在指定之 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 安全性

請參閱

參考

GraphUndoUnit 類別

Microsoft.VisualStudio.GraphModel 命名空間