ILinkedUndoContext Interface
Visual Studio 2015
Use BeginTransaction to group a sequence of operations in one transaction.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
| Name | Description | |
|---|---|---|
![]() | BeginTransaction(String^) | Group a series of changes to the model. If any change fails, you can abort the whole group, leaving the model unchanged. Call Commit() to complete the transaction. If the user calls undo, the whole group will be rolled back. |
In a Visual Studio extension, you can to obtain a context from which an ILinkedUndoTransaction can be created as follows:
[Import]
public ILinkedUndoContext LinkedUndoContext { get; set; }
For more information, see Link UML model updates by using transactions.
Show:
