다음을 통해 공유


ITextUndoHistory.CreateTransaction Method

Creates a new transaction, nests it in the previously current transaction, and marks it current.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
Function CreateTransaction ( _
    description As String _
) As ITextUndoTransaction
ITextUndoTransaction CreateTransaction(
    string description
)
ITextUndoTransaction^ CreateTransaction(
    String^ description
)
abstract CreateTransaction : 
        description:string -> ITextUndoTransaction
function CreateTransaction(
    description : String
) : ITextUndoTransaction

Parameters

  • description
    Type: String

    The description of the transaction.

Return Value

Type: Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction
The new transaction.

.NET Framework Security

See Also

Reference

ITextUndoHistory Interface

Microsoft.VisualStudio.Text.Operations Namespace