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.
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
'Declaration
Public Function ExecuteCommand ( _
itemId As Integer, _
command As OleCommand _
) As Object
public Object ExecuteCommand(
int itemId,
OleCommand command
)
public:
Object^ ExecuteCommand(
int itemId,
OleCommand^ command
)
member ExecuteCommand :
itemId:int *
command:OleCommand -> Object
public function ExecuteCommand(
itemId : int,
command : OleCommand
) : Object
Parameters
- itemId
Type: System.Int32
The item ID on which the command should be executed.
- command
Type: Microsoft.VisualStudio.Data.OleCommand
The OLE command to execute.
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. |
.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.