共用方式為


ServerExplorerCommandHandler.CreateCommand 方法 (Int32, CommandID, array<Object )

這個類別和它的成員會保留給內部使用,其目的不是要供您的程式碼使用。

命名空間:  Microsoft.VisualStudio.Data.Schema.Package.Internal
組件:  Microsoft.VisualStudio.Data.Schema.Package (在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

語法

'宣告
Protected Overrides Function CreateCommand ( _
    itemId As Integer, _
    commandId As CommandID, _
    parameters As Object() _
) As MenuCommand
protected override MenuCommand CreateCommand(
    int itemId,
    CommandID commandId,
    Object[] parameters
)
protected:
virtual MenuCommand^ CreateCommand(
    int itemId, 
    CommandID^ commandId, 
    array<Object^>^ parameters
) override
abstract CreateCommand : 
        itemId:int * 
        commandId:CommandID * 
        parameters:Object[] -> MenuCommand 
override CreateCommand : 
        itemId:int * 
        commandId:CommandID * 
        parameters:Object[] -> MenuCommand 
protected override function CreateCommand(
    itemId : int, 
    commandId : CommandID, 
    parameters : Object[]
) : MenuCommand

參數

  • itemId
    型別:System.Int32
    伺服器總管中的項目 ID。

傳回值

型別:System.ComponentModel.Design.MenuCommand
命令物件,如果命令 ID 不受支援,則為 null。

.NET Framework 安全性

請參閱

參考

ServerExplorerCommandHandler 類別

CreateCommand 多載

Microsoft.VisualStudio.Data.Schema.Package.Internal 命名空間