Partager via


VCFileCodeModel.CommitTransaction Method

Commits the current transaction for the object.

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

Syntax

'Declaration
Sub CommitTransaction
void CommitTransaction()
void CommitTransaction()
abstract CommitTransaction : unit -> unit
function CommitTransaction()

Remarks

Call this method to commit a transaction started by CSession::StartTransaction. After the transaction is committed, all Visual C++ code model operations completed in the current transaction are grouped in a single item (for all affected files) and placed on the Undo stack.

.NET Framework Security

See Also

Reference

VCFileCodeModel Interface

Microsoft.VisualStudio.VCCodeModel Namespace