DataViewHierarchyAccessor.ExecuteCommand Method (Int32, OleCommand)

Executes an OLE command without arguments directly on the data view hierarchy.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'宣言
Public Function ExecuteCommand ( _
    itemId As Integer, _
    command As OleCommand _
) As Object
'使用
Dim instance As DataViewHierarchyAccessor
Dim itemId As Integer
Dim command As OleCommand
Dim returnValue As Object

returnValue = instance.ExecuteCommand(itemId, _
    command)
public Object ExecuteCommand(
    int itemId,
    OleCommand command
)
public:
Object^ ExecuteCommand(
    int itemId, 
    OleCommand^ command
)
public function ExecuteCommand(
    itemId : int, 
    command : OleCommand
) : Object

Parameters

  • itemId
    Type: System.Int32

    The item ID on which the command should be executed.

Return Value

Type: System.Object

Returns the value returned by the command.

Exceptions

Exception Condition
ArgumentNullException

The command parameter is null.

ArgumentException

The specified itemId is invalid.

Permissions

See Also

Reference

DataViewHierarchyAccessor Class

DataViewHierarchyAccessor Members

ExecuteCommand Overload

Microsoft.VisualStudio.Data Namespace