CommandContextBoundMenuCommand 构造函数

初始化 CommandContextBoundMenuCommand 类的新实例。

命名空间:  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, _
    handler As EventHandler, _
    id As CommandID, _
    ParamArray commandContext As Guid() _
)
public CommandContextBoundMenuCommand(
    IServiceProvider serviceProvider,
    EventHandler handler,
    CommandID id,
    params Guid[] commandContext
)

参数

  • commandContext
    类型:array<System.Guid[]
    指示该命令被分配到的命令上下文的 GUID。

.NET Framework 安全性

请参阅

参考

CommandContextBoundMenuCommand 类

Microsoft.VisualStudio.Modeling.Shell 命名空间