共用方式為


CommandContextBoundMenuCommand 建構函式

初始化 CommandContextBoundMenuCommand 類別的新執行個體。

命名空間:  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, _
    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(s)。

.NET Framework 安全性

請參閱

參考

CommandContextBoundMenuCommand 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間