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
'Declaración
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.
- command
Type: Microsoft.VisualStudio.Data.OleCommand
The OleCommand object representing the command to invoke.
- executionOption
Type: Microsoft.VisualStudio.Data.OleCommandExecutionOption
Any OleCommandExecutionOption object instance representing options on the invoked command.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.