Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Causes the specified command to execute.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Public Overridable Function ExecuteCommand ( _
itemId As Integer, _
command As OleCommand, _
executionOption As OleCommandExecutionOption, _
arguments As Object _
) As Object
public virtual Object ExecuteCommand(
int itemId,
OleCommand command,
OleCommandExecutionOption executionOption,
Object arguments
)
public:
virtual Object^ ExecuteCommand(
int itemId,
OleCommand^ command,
OleCommandExecutionOption executionOption,
Object^ arguments
)
abstract ExecuteCommand :
itemId:int *
command:OleCommand *
executionOption:OleCommandExecutionOption *
arguments:Object -> Object
override ExecuteCommand :
itemId:int *
command:OleCommand *
executionOption:OleCommandExecutionOption *
arguments:Object -> Object
public function ExecuteCommand(
itemId : int,
command : OleCommand,
executionOption : OleCommandExecutionOption,
arguments : Object
) : Object
Parameters
- itemId
Type: System.Int32
The identifier of the item 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: System.Object
Returns an object instance representing the value returned by the specified command, which is typically nothing.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The 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.