DataViewCommandHandler.ExecuteCommand 方法 (array<Int32[], OleCommand, OleCommandExecutionOption, Object)
在多個項目引發指定的命令。
命名空間: Microsoft.VisualStudio.Data
組件: Microsoft.VisualStudio.Data (在 Microsoft.VisualStudio.Data.dll 中)
語法
'宣告
Public Overridable Function ExecuteCommand ( _
itemIds As Integer(), _
command As OleCommand, _
executionOption As OleCommandExecutionOption, _
arguments As Object _
) As Object()
public virtual Object[] ExecuteCommand(
int[] itemIds,
OleCommand command,
OleCommandExecutionOption executionOption,
Object arguments
)
public:
virtual array<Object^>^ ExecuteCommand(
array<int>^ itemIds,
OleCommand^ command,
OleCommandExecutionOption executionOption,
Object^ arguments
)
abstract ExecuteCommand :
itemIds:int[] *
command:OleCommand *
executionOption:OleCommandExecutionOption *
arguments:Object -> Object[]
override ExecuteCommand :
itemIds:int[] *
command:OleCommand *
executionOption:OleCommandExecutionOption *
arguments:Object -> Object[]
public function ExecuteCommand(
itemIds : int[],
command : OleCommand,
executionOption : OleCommandExecutionOption,
arguments : Object
) : Object[]
參數
itemIds
類型:array<Int32[]陣列項目的識別項在資料檢視命令應該叫用的階層架構。
command
類型:Microsoft.VisualStudio.Data.OleCommand表示命令的 OleCommand 物件叫用。
executionOption
類型:Microsoft.VisualStudio.Data.OleCommandExecutionOption表示在叫用命令的任何 OleCommandExecutionOption 物件執行個體選擇。
arguments
類型:Object表示引數的物件至命令。
傳回值
類型:array<Object[]
傳回表示值之物件的陣列傳回由指定的命令。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | itemId 和 command 參數為 null。 |
ArgumentException | itemId 參數是無效的。 |
NotImplementedException | 這個命令處理常式不會實作指定的命令。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。