Compartir a través de


UndoUnit Constructor (IServiceProvider, Context, TransactionCommitHandler)

Creates an undo unit without a transaction, but with a delegate it can use to obtain the transaction later, when necessary.

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

Syntax

'Declaración
Public Sub New ( _
    serviceProvider As IServiceProvider, _
    context As Context, _
    commitHandler As TransactionCommitHandler _
)
public UndoUnit(
    IServiceProvider serviceProvider,
    Context context,
    TransactionCommitHandler commitHandler
)
public:
UndoUnit(
    IServiceProvider^ serviceProvider, 
    Context^ context, 
    TransactionCommitHandler^ commitHandler
)
new : 
        serviceProvider:IServiceProvider * 
        context:Context * 
        commitHandler:TransactionCommitHandler -> UndoUnit
public function UndoUnit(
    serviceProvider : IServiceProvider, 
    context : Context, 
    commitHandler : TransactionCommitHandler
)

Parameters

.NET Framework Security

See Also

Reference

UndoUnit Class

UndoUnit Overload

Microsoft.VisualStudio.Modeling.Shell Namespace