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

创建没有事务但有能用于必要时随后获取事务的委托的撤销单元。 并指定可用于获取此操作说明的委托,避免提交。

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.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 命名空间