ILinkedUndoContext 介面
您可以使用 BeginTransaction 群組的一筆交易中的作業順序。
命名空間: Microsoft.VisualStudio.Modeling.ExtensionEnablement
組件: Microsoft.VisualStudio.Modeling.Sdk.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)
語法
'宣告
Public Interface ILinkedUndoContext
public interface ILinkedUndoContext
ILinkedUndoContext 型別會公開下列成員。
方法
名稱 | 說明 | |
---|---|---|
![]() |
BeginTransaction | 將一系列模型的變更。如果失敗的任何變更,您可以中止整個群組,並保留不變的模型。呼叫完成的交易的 Commit()。如果使用者在電話中復原,將會復原整個群組。 |
回頁首
備註
在Visual Studio副檔名,您可以從中取得內容ILinkedUndoTransaction可以建立方式如下:
[Import]
public ILinkedUndoContext LinkedUndoContext { get; set; }
如需詳細資訊,請參閱 HOW TO:使用交易連結模型更新。