Freigeben über


IVsProfferCommands.AddNamedCommand-Methode

Diese API unterstützt die .NET Framework-Infrastruktur und ist nicht für die direkte Verwendung in Code bestimmt.

Nur für die interne Verwendung durch Microsoft vorgesehen.

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

Syntax

'Declaration
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
)

Parameter

  • pguidPackage
    Typ: Guid%

    Die GUID des Pakets.

  • pguidCmdGroup
    Typ: Guid%

    Die GUID der Befehlsgruppe.

  • pszCmdNameCanonical
    Typ: String

    Der Name des Befehls.

  • pdwCmdId
    Typ: UInt32%

    Die Befehls-ID des Befehls.

  • pszCmdNameLocalized
    Typ: String

    Der lokalisierte Name des Befehls.

  • pszBtnText
    Typ: String

    Der Schaltflächentext.

  • pszCmdTooltip
    Typ: String

    Die QuickInfo-Informationen zum Befehl.

  • pszSatelliteDLL
    Typ: String

    Der Name der Satellitenassembly.

  • dwBitmapResourceId
    Typ: UInt32

    Die Bitmapressourcen-ID.

  • dwBitmapImageIndex
    Typ: UInt32

    Der Index der Bitmapressource.

  • dwCmdFlagsDefault
    Typ: UInt32

    Die Standardflags.

  • cUIContexts
    Typ: UInt32

    Die Benutzeroberflächen-Kontexte.

  • rgguidUIContexts
    Typ: Guid%

    Die GUID der Benutzeroberflächen-Kontexte.

.NET Framework-Sicherheit

Siehe auch

Referenz

IVsProfferCommands Schnittstelle

EnvDTE-Namespace