引数とのデータの階層の OLE コマンドを実行します。
名前空間: Microsoft.VisualStudio.Data
アセンブリ: Microsoft.VisualStudio.Data (Microsoft.VisualStudio.Data.dll 内)
構文
'宣言
Public Function ExecuteCommand ( _
itemId As Integer, _
command As OleCommand, _
arguments As Object _
) As Object
public Object ExecuteCommand(
int itemId,
OleCommand command,
Object arguments
)
public:
Object^ ExecuteCommand(
int itemId,
OleCommand^ command,
Object^ arguments
)
member ExecuteCommand :
itemId:int *
command:OleCommand *
arguments:Object -> Object
public function ExecuteCommand(
itemId : int,
command : OleCommand,
arguments : Object
) : Object
パラメーター
- itemId
型 : System.Int32
コマンドが実行される階層を指定する項目 ID。
- command
型 : Microsoft.VisualStudio.Data.OleCommand
OLE 実行するコマンド。
- arguments
型 : System.Object
コマンドに必要な引数。
戻り値
型 : System.Object
コマンドによって返される値を返します。
例外
| 例外 | 条件 |
|---|---|
| ArgumentNullException | command パラメーターが null です。 |
| ArgumentException | 指定 itemId が無効です。 |
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。