共用方式為


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[]

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

  • arguments
    類型:Object

    表示引數的物件至命令。

傳回值

類型:array<Object[]
傳回表示值之物件的陣列傳回由指定的命令。

例外狀況

例外狀況 條件
ArgumentNullException

itemId 和 command 參數為 null。

ArgumentException

itemId 參數是無效的。

NotImplementedException

這個命令處理常式不會實作指定的命令。

.NET Framework 安全性

請參閱

參考

DataViewCommandHandler 類別

ExecuteCommand 多載

Microsoft.VisualStudio.Data 命名空間