Partilhar via


Método IVsProfferCommands.AddNamedCommand

Esta API oferece suporte à infraestrutura .NET Framework e não se destina a ser usada diretamente do seu código.

Somente para uso interno da Microsoft.

Namespace:  EnvDTE
Assembly:  EnvDTE (em EnvDTE.dll)

Sintaxe

'Declaração
Sub AddNamedCommand ( _
    ByRef pguidPackage As Guid, _
    ByRef pguidCmdGroup As Guid, _
    pszCmdNameCanonical As String, _
    <OutAttribute> ByRef pdwCmdId As UInteger, _
    pszCmdNameLocalized As String, _
    pszBtnText As String, _
    pszCmdTooltip As String, _
    pszSatelliteDLL As String, _
    dwBitmapResourceId As UInteger, _
    dwBitmapImageIndex As UInteger, _
    dwCmdFlagsDefault As UInteger, _
    cUIContexts As UInteger, _
    ByRef rgguidUIContexts As Guid _
)
void AddNamedCommand(
    ref Guid pguidPackage,
    ref Guid pguidCmdGroup,
    string pszCmdNameCanonical,
    out uint pdwCmdId,
    string pszCmdNameLocalized,
    string pszBtnText,
    string pszCmdTooltip,
    string pszSatelliteDLL,
    uint dwBitmapResourceId,
    uint dwBitmapImageIndex,
    uint dwCmdFlagsDefault,
    uint cUIContexts,
    ref Guid rgguidUIContexts
)
void AddNamedCommand(
    [InAttribute] Guid% pguidPackage, 
    [InAttribute] Guid% pguidCmdGroup, 
    [InAttribute] String^ pszCmdNameCanonical, 
    [OutAttribute] unsigned int% pdwCmdId, 
    [InAttribute] String^ pszCmdNameLocalized, 
    [InAttribute] String^ pszBtnText, 
    [InAttribute] String^ pszCmdTooltip, 
    [InAttribute] String^ pszSatelliteDLL, 
    [InAttribute] unsigned int dwBitmapResourceId, 
    [InAttribute] unsigned int dwBitmapImageIndex, 
    [InAttribute] unsigned int dwCmdFlagsDefault, 
    [InAttribute] unsigned int cUIContexts, 
    [InAttribute] Guid% rgguidUIContexts
)
abstract AddNamedCommand : 
        pguidPackage:Guid byref * 
        pguidCmdGroup:Guid byref * 
        pszCmdNameCanonical:string * 
        pdwCmdId:uint32 byref * 
        pszCmdNameLocalized:string * 
        pszBtnText:string * 
        pszCmdTooltip:string * 
        pszSatelliteDLL:string * 
        dwBitmapResourceId:uint32 * 
        dwBitmapImageIndex:uint32 * 
        dwCmdFlagsDefault:uint32 * 
        cUIContexts:uint32 * 
        rgguidUIContexts:Guid byref -> unit 
function AddNamedCommand(
    pguidPackage : Guid, 
    pguidCmdGroup : Guid, 
    pszCmdNameCanonical : String, 
    pdwCmdId : uint, 
    pszCmdNameLocalized : String, 
    pszBtnText : String, 
    pszCmdTooltip : String, 
    pszSatelliteDLL : String, 
    dwBitmapResourceId : uint, 
    dwBitmapImageIndex : uint, 
    dwCmdFlagsDefault : uint, 
    cUIContexts : uint, 
    rgguidUIContexts : Guid
)

Parâmetros

  • pguidCmdGroup
    Tipo: System.Guid%
    O GUID do grupo de comandos.
  • pszCmdNameLocalized
    Tipo: System.String
    O nome localizado do comando.
  • pszCmdTooltip
    Tipo: System.String
    As informações sobre o comando de dica de ferramenta.
  • pszSatelliteDLL
    Tipo: System.String
    O nome do assembly satélite.
  • dwBitmapResourceId
    Tipo: System.UInt32
    A identificação do recurso de bitmap.
  • dwBitmapImageIndex
    Tipo: System.UInt32
    O índice do recurso de bitmap.
  • dwCmdFlagsDefault
    Tipo: System.UInt32
    Os sinalizadores padrão.
  • cUIContexts
    Tipo: System.UInt32
    Os contextos de interface do usuário.
  • rgguidUIContexts
    Tipo: System.Guid%
    O GUID dos contextos de interface do usuário.

Segurança do .NET Framework

Consulte também

Referência

IVsProfferCommands Interface

Namespace EnvDTE