共用方式為


IVsDataViewCommandProvider.CreateCommand 方法

在伺服器總管中功能表項目的功能表命令。

命名空間:  Microsoft.VisualStudio.Data.Services.SupportEntities
組件:  Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)

語法

'宣告
Function CreateCommand ( _
    itemId As Integer, _
    commandId As CommandID _
) As MenuCommand
MenuCommand CreateCommand(
    int itemId,
    CommandID commandId
)
MenuCommand^ CreateCommand(
    int itemId, 
    CommandID^ commandId
)
abstract CreateCommand : 
        itemId:int * 
        commandId:CommandID -> MenuCommand
function CreateCommand(
    itemId : int, 
    commandId : CommandID
) : MenuCommand

參數

  • itemId
    類型:Int32

    項目的識別項在資料的檢視命令應該叫用的階層架構。

  • commandId
    類型:CommandID

    唯一識別命令的 CommandID 物件執行個體與指定的資料項目檢視階層架構。

傳回值

類型:MenuCommand
表示命令 MenuCommand 項目的物件。

.NET Framework 安全性

請參閱

參考

IVsDataViewCommandProvider 介面

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空間