Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Public Sub New ( _
serviceProvider As IServiceProvider, _
context As Context, _
commitHandler As TransactionCommitHandler _
)
'使用
Dim serviceProvider As IServiceProvider
Dim context As Context
Dim commitHandler As TransactionCommitHandler
Dim instance As New UndoUnit(serviceProvider, _
context, commitHandler)
public UndoUnit(
IServiceProvider serviceProvider,
Context context,
TransactionCommitHandler commitHandler
)
public:
UndoUnit(
IServiceProvider^ serviceProvider,
Context^ context,
TransactionCommitHandler^ commitHandler
)
public function UndoUnit(
serviceProvider : IServiceProvider,
context : Context,
commitHandler : TransactionCommitHandler
)
Parameters
- serviceProvider
Type: System.IServiceProvider
- context
Type: Microsoft.VisualStudio.Modeling.Context
- commitHandler
Type: Microsoft.VisualStudio.Modeling.Shell.TransactionCommitHandler
Permissions
- 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.