Partager via


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

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.

  • 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

See Also

Reference

DataViewCommandHandler Class

ExecuteCommand Overload

Microsoft.VisualStudio.Data Namespace