UndoUnit 构造函数 (IServiceProvider, Context, TransactionCommitHandler, DescriptionHandler)

创建一个取消单元,而无需事务,但是,与委托它可以使用后获取该事务,必要时,并指定可使用获取此事件声明的委托,避免进行。

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

语法

声明
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
)

参数

.NET Framework 安全性

请参见

参考

UndoUnit 类

UndoUnit 重载

Microsoft.VisualStudio.Modeling.Shell 命名空间