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
'Declaration
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
pDropdownBar
Type: Microsoft.VisualStudio.TextManager.Interop.IVsDropdownBar[in] Specifies a drop-down bar object.
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
- 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.