DataViewCommandHandler.ExecuteCommand Method ([], 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

'宣言
Public Overridable Function ExecuteCommand ( _
    itemIds As Integer(), _
    command As OleCommand, _
    executionOption As OleCommandExecutionOption, _
    arguments As Object _
) As Object()
'使用
Dim instance As DataViewCommandHandler
Dim itemIds As Integer()
Dim command As OleCommand
Dim executionOption As OleCommandExecutionOption
Dim arguments As Object
Dim returnValue As Object()

returnValue = instance.ExecuteCommand(itemIds, _
    command, executionOption, arguments)
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
)
public function ExecuteCommand(
    itemIds : int[], 
    command : OleCommand, 
    executionOption : OleCommandExecutionOption, 
    arguments : Object
) : Object[]

Parameters

  • itemIds
    Type: []

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

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.

Permissions

See Also

Reference

DataViewCommandHandler Class

DataViewCommandHandler Members

ExecuteCommand Overload

Microsoft.VisualStudio.Data Namespace