Compartir a través de


DataViewCommandHandler.ExecuteCommand Method (array<Int32 , OleCommand, OleCommandExecutionOption, Object)

Causes the specified command to execute on multiple items.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

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

Parameters

  • itemIds
    Type: array<System.Int32[]

    Array of identifiers for the items in the data view hierarchy on which this command should be invoked.

  • arguments
    Type: System.Object

    An object representing arguments to the command.

Return Value

Type: array<System.Object[]
Returns an object array representing values returned by the specified commands.

Exceptions

Exception Condition
ArgumentNullException

The itemId and/or command parameter is null.

ArgumentException

The itemId parameter is invalid.

NotImplementedException

This command handler does not implement the specified command.

.NET Framework Security

See Also

Reference

DataViewCommandHandler Class

ExecuteCommand Overload

Microsoft.VisualStudio.Data Namespace