DataViewCommandProvider.CreateCommand Method (Int32, CommandID, array<Object )
Creates a menu command for a Server Explorer menu item containing the specified parameters.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Protected Overridable Function CreateCommand ( _
itemId As Integer, _
commandId As CommandID, _
parameters As Object() _
) As MenuCommand
protected virtual MenuCommand CreateCommand(
int itemId,
CommandID commandId,
Object[] parameters
)
protected:
virtual MenuCommand^ CreateCommand(
int itemId,
CommandID^ commandId,
array<Object^>^ parameters
)
abstract CreateCommand :
itemId:int *
commandId:CommandID *
parameters:Object[] -> MenuCommand
override CreateCommand :
itemId:int *
commandId:CommandID *
parameters:Object[] -> MenuCommand
protected function CreateCommand(
itemId : int,
commandId : CommandID,
parameters : Object[]
) : MenuCommand
Parameters
- itemId
Type: System.Int32
The identifier of the item in the data view hierarchy on which this command should be invoked.
- commandId
Type: System.ComponentModel.Design.CommandID
A CommandID object instance uniquely identifying the command associated with the specified item in the data view hierarchy.
- parameters
Type: array<System.Object[]
An array of parameters for use with this command.
Return Value
Type: System.ComponentModel.Design.MenuCommand
A MenuCommand object representing a menu command item.
.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.