Compartir a través de


IVsDropdownBarManager.GetDropdownBar(IVsDropdownBar) Method

Definition

Returns the dropdown bar associated with the code window, if any. If there is one, it returns S_OK and sends back a pointer to it. If there isn't one, it returns null.

public:
 int GetDropdownBar([Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar ^ % ppDropdownBar);
public:
 int GetDropdownBar([Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar ^ &  ppDropdownBar);
int GetDropdownBar([Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar const & & ppDropdownBar);
public int GetDropdownBar (out Microsoft.VisualStudio.TextManager.Interop.IVsDropdownBar ppDropdownBar);
abstract member GetDropdownBar : IVsDropdownBar -> int
Public Function GetDropdownBar (ByRef ppDropdownBar As IVsDropdownBar) As Integer

Parameters

ppDropdownBar
IVsDropdownBar

[out] Pointer to the drop-down bar, null if there isn't one.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsDropdownBarManager::GetDropdownBar(  
   [out] IVsDropdownBar **ppDropdownBar  
);  

GetDropdownBar sends back the dropdown bar associated with the code window. If there is one, it returns S_OK and sends back an AddRef'd ptr to it. If there isn't one, it returns S_FALSE and sets ppDropdownBar to null.

Applies to