Share via


ILinkedUndoContext.BeginTransaction(String) Method

Definition

Begin a new transaction. ILinkedUndoContext.BeginTransaction and ILinkedUndoTransaction.Commit/ILinkedUndoTransaction.Abort are always called in pairs. The implementation should be invariant to nested calls to this pair and still maintain the notion of one top-level transaction. Typically a using statement will be used to manage the life of the transaction.

public:
 Microsoft::VisualStudio::Modeling::ExtensionEnablement::ILinkedUndoTransaction ^ BeginTransaction(System::String ^ description);
public Microsoft.VisualStudio.Modeling.ExtensionEnablement.ILinkedUndoTransaction BeginTransaction (string description);
abstract member BeginTransaction : string -> Microsoft.VisualStudio.Modeling.ExtensionEnablement.ILinkedUndoTransaction
Public Function BeginTransaction (description As String) As ILinkedUndoTransaction

Parameters

description
String

A description of the transaction.

Returns

ILinkedUndoTransaction representing the transaction instance.

Exceptions

Thrown if the description argument is null.

Thrown if the description argument is an empty string.

Applies to