Partilhar via


LinkedTransaction Constructor (String, IServiceProvider)

Initializes a new instance of the LinkedTransaction class.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Declaração
Public Sub New ( _
    description As String, _
    serviceProvider As IServiceProvider _
)
public LinkedTransaction(
    string description,
    IServiceProvider serviceProvider
)
public:
LinkedTransaction(
    String^ description, 
    IServiceProvider^ serviceProvider
)
new : 
        description:string * 
        serviceProvider:IServiceProvider -> LinkedTransaction
public function LinkedTransaction(
    description : String, 
    serviceProvider : IServiceProvider
)

Parameters

  • description
    Type: System.String
    The description that appears in the Undo/Redo list.

Remarks

When the LinkedTransaction class is initialized, this method first opens a linked undo transaction, and then the method opens an IMS transaction for the document that is open.

.NET Framework Security

See Also

Reference

LinkedTransaction Class

LinkedTransaction Overload

Microsoft.VisualStudio.Modeling.Shell Namespace