다음을 통해 공유


UndoUnit Constructors

Definition

Overloads

UndoUnit(IServiceProvider, Context, TransactionCommitHandler)

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

UndoUnit(IServiceProvider, Context, TransactionItem)

Constructs a new undo unit.

UndoUnit(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.

UndoUnit(IServiceProvider, Context, TransactionCommitHandler)

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

public:
 UndoUnit(IServiceProvider ^ serviceProvider, Microsoft::VisualStudio::Modeling::Context ^ context, Microsoft::VisualStudio::Modeling::Shell::TransactionCommitHandler ^ commitHandler);
public UndoUnit (IServiceProvider serviceProvider, Microsoft.VisualStudio.Modeling.Context context, Microsoft.VisualStudio.Modeling.Shell.TransactionCommitHandler commitHandler);
new Microsoft.VisualStudio.Modeling.Shell.UndoUnit : IServiceProvider * Microsoft.VisualStudio.Modeling.Context * Microsoft.VisualStudio.Modeling.Shell.TransactionCommitHandler -> Microsoft.VisualStudio.Modeling.Shell.UndoUnit
Public Sub New (serviceProvider As IServiceProvider, context As Context, commitHandler As TransactionCommitHandler)

Parameters

serviceProvider
IServiceProvider
context
Context
commitHandler
TransactionCommitHandler

Applies to

UndoUnit(IServiceProvider, Context, TransactionItem)

Constructs a new undo unit.

public:
 UndoUnit(IServiceProvider ^ serviceProvider, Microsoft::VisualStudio::Modeling::Context ^ context, Microsoft::VisualStudio::Modeling::TransactionItem ^ transactionItem);
public UndoUnit (IServiceProvider serviceProvider, Microsoft.VisualStudio.Modeling.Context context, Microsoft.VisualStudio.Modeling.TransactionItem transactionItem);
new Microsoft.VisualStudio.Modeling.Shell.UndoUnit : IServiceProvider * Microsoft.VisualStudio.Modeling.Context * Microsoft.VisualStudio.Modeling.TransactionItem -> Microsoft.VisualStudio.Modeling.Shell.UndoUnit
Public Sub New (serviceProvider As IServiceProvider, context As Context, transactionItem As TransactionItem)

Parameters

serviceProvider
IServiceProvider
context
Context
transactionItem
TransactionItem

The transactionItem to wrap.

Applies to

UndoUnit(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.

public:
 UndoUnit(IServiceProvider ^ serviceProvider, Microsoft::VisualStudio::Modeling::Context ^ context, Microsoft::VisualStudio::Modeling::Shell::TransactionCommitHandler ^ commitHandler, Microsoft::VisualStudio::Modeling::Shell::DescriptionHandler ^ descriptionHandler);
public UndoUnit (IServiceProvider serviceProvider, Microsoft.VisualStudio.Modeling.Context context, Microsoft.VisualStudio.Modeling.Shell.TransactionCommitHandler commitHandler, Microsoft.VisualStudio.Modeling.Shell.DescriptionHandler descriptionHandler);
new Microsoft.VisualStudio.Modeling.Shell.UndoUnit : IServiceProvider * Microsoft.VisualStudio.Modeling.Context * Microsoft.VisualStudio.Modeling.Shell.TransactionCommitHandler * Microsoft.VisualStudio.Modeling.Shell.DescriptionHandler -> Microsoft.VisualStudio.Modeling.Shell.UndoUnit
Public Sub New (serviceProvider As IServiceProvider, context As Context, commitHandler As TransactionCommitHandler, descriptionHandler As DescriptionHandler)

Parameters

serviceProvider
IServiceProvider
context
Context
commitHandler
TransactionCommitHandler
descriptionHandler
DescriptionHandler

Applies to