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

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

returnValue = instance.ExecuteCommand(itemId, _
    command, executionOption, arguments)
public virtual Object ExecuteCommand(
    int itemId,
    OleCommand command,
    OleCommandExecutionOption executionOption,
    Object arguments
)
public:
virtual Object^ ExecuteCommand(
    int itemId, 
    OleCommand^ command, 
    OleCommandExecutionOption executionOption, 
    Object^ arguments
)
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.

Permissions

See Also

Reference

DataViewCommandHandler Class

DataViewCommandHandler Members

ExecuteCommand Overload

Microsoft.VisualStudio.Data Namespace