VCCodeModel.StartTransaction Method

Begins a transaction.

Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

Syntax

声明
Sub StartTransaction ( _
    bstrName As String _
)
用法
Dim instance As VCCodeModel
Dim bstrName As String

instance.StartTransaction(bstrName)
void StartTransaction(
    string bstrName
)
void StartTransaction(
    String^ bstrName
)
function StartTransaction(
    bstrName : String
)

Parameters

  • bstrName
    Type: System.String

    Required. The name of the transaction. This name identifies the item placed on the Undo stack once the transaction is completed.

Remarks

Call this method to start a new transaction. A transaction consists of a series of one or more modifications to an existing solution using the Visual C++ Code Model. The transaction is completed when AbortTransaction or CommitTransaction are called.

Permissions

See Also

Reference

VCCodeModel Interface

VCCodeModel Members

Microsoft.VisualStudio.VCCodeModel Namespace