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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.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
- serviceProvider
Type: IServiceProvider
- context
Type: Microsoft.VisualStudio.Modeling.Context
- commitHandler
Type: Microsoft.VisualStudio.Modeling.Shell.TransactionCommitHandler
- descriptionHandler
Type: Microsoft.VisualStudio.Modeling.Shell.DescriptionHandler
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.