다음을 통해 공유


IVsDropdownBarManager.GetDropdownBar Method

Returns the drop-down bar associated with the code window.

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

Syntax

‘선언
Function GetDropdownBar ( _
    <OutAttribute> ByRef ppDropdownBar As IVsDropdownBar _
) As Integer
‘사용 방법
Dim instance As IVsDropdownBarManager
Dim ppDropdownBar As IVsDropdownBar
Dim returnValue As Integer

returnValue = instance.GetDropdownBar(ppDropdownBar)
int GetDropdownBar(
    out IVsDropdownBar ppDropdownBar
)
int GetDropdownBar(
    [OutAttribute] IVsDropdownBar^% ppDropdownBar
)
abstract GetDropdownBar : 
        ppDropdownBar:IVsDropdownBar byref -> int 
function GetDropdownBar(
    ppDropdownBar : 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 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 nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

IVsDropdownBarManager Interface

IVsDropdownBarManager Members

Microsoft.VisualStudio.TextManager.Interop Namespace