IVsDropdownBarClient.SetDropdownBar Method

Called by the drop-down bar to hook itself up to the client.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

声明
Function SetDropdownBar ( _
    pDropdownBar As IVsDropdownBar _
) As Integer
int SetDropdownBar(
    IVsDropdownBar pDropdownBar
)
int SetDropdownBar(
    [InAttribute] IVsDropdownBar^ pDropdownBar
)
abstract SetDropdownBar : 
        pDropdownBar:IVsDropdownBar -> int 
function SetDropdownBar(
    pDropdownBar : IVsDropdownBar
) : int

Parameters

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 IVsDropdownBarClient::SetDropdownBar(
   [in] IVsDropdownBar *pDropdownBar
);

SetDropdownBar is called by the drop-down bar to hook itself up to the client. This callback is necessary, rather than relying on a return value from AddDropdownBar, because client callbacks are required as a result of attaching the combo bar, before AddDropdownBar returns. SetDropdownBar should be called only once.

.NET Framework Security

See Also

Reference

IVsDropdownBarClient Interface

Microsoft.VisualStudio.TextManager.Interop Namespace