選択したノードのグループの CommandID の指定値に対応するメニュー コマンドを取得します。
名前空間: Microsoft.VisualStudio.Data.Services
アセンブリ: Microsoft.VisualStudio.Data.Services (Microsoft.VisualStudio.Data.Services.dll 内)
構文
'宣言
Function GetCommand ( _
commandId As CommandID _
) As MenuCommand
MenuCommand GetCommand(
CommandID commandId
)
MenuCommand^ GetCommand(
CommandID^ commandId
)
abstract GetCommand :
commandId:CommandID -> MenuCommand
function GetCommand(
commandId : CommandID
) : MenuCommand
パラメーター
- commandId
型 : System.ComponentModel.Design.CommandID
数値コマンド ID と GUID のメニューのグループ ID を含む CommandID のオブジェクト。
戻り値
型 : System.ComponentModel.Design.MenuCommand
メニュー コマンドとして MenuCommand のオブジェクト。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。