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.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 _
)
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
- serviceProvider
Type: IServiceProvider
- context
Type: Microsoft.VisualStudio.Modeling.Context
- commitHandler
Type: Microsoft.VisualStudio.Modeling.Shell.TransactionCommitHandler
.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.