ILinkedUndoContext Interface

 

Use BeginTransaction to group a sequence of operations in one transaction.

Namespace:   Microsoft.VisualStudio.Modeling.ExtensionEnablement
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

public interface class ILinkedUndoContext

NameDescription
System_CAPS_pubmethodBeginTransaction(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.

Return to top
Show: