Partager via


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.

  • 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

See Also

Reference

DataViewCommandProvider Class

CreateCommand Overload

Microsoft.VisualStudio.Data.Framework Namespace