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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。