Condividi tramite


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

'Dichiarazione
Function SetDropdownBar ( _
    pDropdownBar As IVsDropdownBar _
) As Integer
'Utilizzo
Dim instance As IVsDropdownBarClient
Dim pDropdownBar As IVsDropdownBar
Dim returnValue As Integer

returnValue = instance.SetDropdownBar(pDropdownBar)
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

IVsDropdownBarClient Members

Microsoft.VisualStudio.TextManager.Interop Namespace