IVsDataViewCommandProvider.CreateCommand (Método)

Crea un comando de menú para un elemento de menú del Explorador de servidores.

Espacio de nombres:  Microsoft.VisualStudio.Data.Services.SupportEntities
Ensamblado:  Microsoft.VisualStudio.Data.Services (en Microsoft.VisualStudio.Data.Services.dll)

Sintaxis

'Declaración
Function CreateCommand ( _
    itemId As Integer, _
    commandId As CommandID _
) As MenuCommand
MenuCommand CreateCommand(
    int itemId,
    CommandID commandId
)
MenuCommand^ CreateCommand(
    int itemId, 
    CommandID^ commandId
)
abstract CreateCommand : 
        itemId:int * 
        commandId:CommandID -> MenuCommand 
function CreateCommand(
    itemId : int, 
    commandId : CommandID
) : MenuCommand

Parámetros

  • itemId
    Tipo: System.Int32
    El identificador de elemento en la jerarquía de la vista de datos en la que este comando debe ser invocado.

Valor devuelto

Tipo: System.ComponentModel.Design.MenuCommand
Un objeto de MenuCommand que representa un elemento de comando de menú.

Seguridad de .NET Framework

Vea también

Referencia

IVsDataViewCommandProvider Interfaz

Microsoft.VisualStudio.Data.Services.SupportEntities (Espacio de nombres)