Compartir a través de


TypeAndMemberDropdownBars.SetDropdownBar(IVsDropdownBar) Method

Definition

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

public:
 virtual int SetDropdownBar(Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar ^ bar);
public:
 virtual int SetDropdownBar(Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar ^ bar);
 virtual int SetDropdownBar(Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar const & bar);
public virtual int SetDropdownBar (Microsoft.VisualStudio.TextManager.Interop.IVsDropdownBar bar);
abstract member SetDropdownBar : Microsoft.VisualStudio.TextManager.Interop.IVsDropdownBar -> int
override this.SetDropdownBar : Microsoft.VisualStudio.TextManager.Interop.IVsDropdownBar -> int
Public Overridable Function SetDropdownBar (bar As IVsDropdownBar) As Integer

Parameters

bar
IVsDropdownBar

[in] The IVsDropdownBar object that controls the two combo boxes.

Returns

If successful, returns S_OK; otherwise, returns an error code.

Implements

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.

Applies to