Adds a set of combo drop-downs to a code window.
Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
声明
Function AddDropdownBar ( _
    cCombos As Integer, _
    pClient As IVsDropdownBarClient _
) As Integer
用法
Dim instance As IVsDropdownBarManager
Dim cCombos As Integer
Dim pClient As IVsDropdownBarClient
Dim returnValue As Integer
returnValue = instance.AddDropdownBar(cCombos, _
    pClient)
int AddDropdownBar(
    int cCombos,
    IVsDropdownBarClient pClient
)
int AddDropdownBar(
    [InAttribute] int cCombos, 
    [InAttribute] IVsDropdownBarClient^ pClient
)
abstract AddDropdownBar : 
        cCombos:int * 
        pClient:IVsDropdownBarClient -> int 
function AddDropdownBar(
    cCombos : int, 
    pClient : IVsDropdownBarClient
) : int
Parameters
- cCombos
 Type: System.Int32
 [in] The DropdownBar/Window combo.
- pClient
 Type: Microsoft.VisualStudio.TextManager.Interop.IVsDropdownBarClient
 [in] DropdownBar client.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsDropdownBarManager::AddDropdownBar(
   [in] long cCombos,
   [in] IVsDropdownBarClient *pClient
);
AddDropdownBar adds a set of combo dropdowns to a code window. This call wraps the call to Attach. If there is already a dropdown bar attached to the code window the call returns E_UNEXPECTED. You should call GetDropdownBar before calling AddDropdownBar to ensure that there isn't already a dropdown bar associated with the given code window.
.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.