다음을 통해 공유


TypeAndMemberDropdownBars.SetDropdownBar Method

Called to specify the IVsDropdownBar object that controls the two combo boxes.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

‘선언
Public Overridable Function SetDropdownBar ( _
    bar As IVsDropdownBar _
) As Integer
‘사용 방법
Dim instance As TypeAndMemberDropdownBars
Dim bar As IVsDropdownBar
Dim returnValue As Integer

returnValue = instance.SetDropdownBar(bar)
public virtual int SetDropdownBar(
    IVsDropdownBar bar
)
public:
virtual int SetDropdownBar(
    IVsDropdownBar^ bar
)
abstract SetDropdownBar : 
        bar:IVsDropdownBar -> int 
override SetDropdownBar : 
        bar:IVsDropdownBar -> int 
public function SetDropdownBar(
    bar : IVsDropdownBar
) : int

Parameters

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

IVsDropdownBarClient.SetDropdownBar(IVsDropdownBar)

Remarks

This method is an implementation of the SetDropdownBar method on the IVsDropdownBarClient interface.

The base method sets an internal field with the given IVsDropdownBar object. This object is used to refresh the combo boxes in the internal method SynchronizeDropdowns (see the "Notes for Callers" section in the TypeAndMemberDropdownBars class for details on this internal method). The base method always returns a success code of S_OK.

.NET Framework Security

See Also

Reference

TypeAndMemberDropdownBars Class

TypeAndMemberDropdownBars Members

Microsoft.VisualStudio.Package Namespace