Delen via


UndoUnit Constructor (IServiceProvider, Context, TransactionCommitHandler, DescriptionHandler)

Creates an undo unit without a transaction, but with a delegate it can use to obtain the transaction later, when necessary. Also specifies a delegate that can be used to obtain the description of this action, to avoid a commit.

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

Syntax

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

Parameters

.NET Framework Security

See Also

Reference

UndoUnit Class

UndoUnit Overload

Microsoft.VisualStudio.Modeling.Shell Namespace