DataViewHierarchyAccessor.ExecuteCommand Method

Definition

Overloads

ExecuteCommand(Int32, OleCommand)

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

ExecuteCommand(Int32, OleCommand, Object)

Executes an OLE command on the data view hierarchy with arguments.

ExecuteCommand(Int32, OleCommand, OleCommandExecutionOption, Object)

Executes an OLE command directly on the data view hierarchy, with a specific execution option and arguments.

ExecuteCommand(Int32, OleCommand)

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

public:
 System::Object ^ ExecuteCommand(int itemId, Microsoft::VisualStudio::Data::OleCommand ^ command);
public object ExecuteCommand (int itemId, Microsoft.VisualStudio.Data.OleCommand command);
member this.ExecuteCommand : int * Microsoft.VisualStudio.Data.OleCommand -> obj
Public Function ExecuteCommand (itemId As Integer, command As OleCommand) As Object

Parameters

itemId
Int32

The item ID on which the command should be executed.

command
OleCommand

The OLE command to execute.

Returns

Returns the value returned by the command.

Exceptions

The command parameter is null.

The specified itemId is invalid.

Applies to

ExecuteCommand(Int32, OleCommand, Object)

Executes an OLE command on the data view hierarchy with arguments.

public:
 System::Object ^ ExecuteCommand(int itemId, Microsoft::VisualStudio::Data::OleCommand ^ command, System::Object ^ arguments);
public object ExecuteCommand (int itemId, Microsoft.VisualStudio.Data.OleCommand command, object arguments);
member this.ExecuteCommand : int * Microsoft.VisualStudio.Data.OleCommand * obj -> obj
Public Function ExecuteCommand (itemId As Integer, command As OleCommand, arguments As Object) As Object

Parameters

itemId
Int32

The item ID specifying the hierarchy on which the command should be executed.

command
OleCommand

The OLE command to execute.

arguments
Object

Arguments expected by the command.

Returns

Returns the value returned by the command.

Exceptions

The command parameter is null.

The specified itemId is invalid.

Applies to

ExecuteCommand(Int32, OleCommand, OleCommandExecutionOption, Object)

Executes an OLE command directly on the data view hierarchy, with a specific execution option and arguments.

public:
 System::Object ^ ExecuteCommand(int itemId, Microsoft::VisualStudio::Data::OleCommand ^ command, Microsoft::VisualStudio::Data::OleCommandExecutionOption executionOption, System::Object ^ arguments);
public object ExecuteCommand (int itemId, Microsoft.VisualStudio.Data.OleCommand command, Microsoft.VisualStudio.Data.OleCommandExecutionOption executionOption, object arguments);
member this.ExecuteCommand : int * Microsoft.VisualStudio.Data.OleCommand * Microsoft.VisualStudio.Data.OleCommandExecutionOption * obj -> obj
Public Function ExecuteCommand (itemId As Integer, command As OleCommand, executionOption As OleCommandExecutionOption, arguments As Object) As Object

Parameters

itemId
Int32

The item ID specifying the hierarchy on which the command should be executed.

command
OleCommand

The OLE command to execute.

executionOption
OleCommandExecutionOption

An OLE execution option.

arguments
Object

Arguments expected by the command.

Returns

Returns the value returned by the command.

Exceptions

The command parameter is null.

The specified itemId is invalid.

Applies to