共用方式為


LanguageService.SynchronizeDropdowns Method

Definition

Called to update a drop-down bar based on the current caret position.

public:
 virtual void SynchronizeDropdowns();
public:
 virtual void SynchronizeDropdowns();
 virtual void SynchronizeDropdowns();
public virtual void SynchronizeDropdowns ();
abstract member SynchronizeDropdowns : unit -> unit
override this.SynchronizeDropdowns : unit -> unit
Public Overridable Sub SynchronizeDropdowns ()

Remarks

This method not typically called unless you call it in your own code.

The base method uses the current active view to get the associated CodeWindowManager object, and then asks the CodeWindowManager object for the TypeAndMemberDropdownBars object. If that object exists, this method calls OnSynchronizeDropdowns with the current caret position.

Note that the default Microsoft.VisualStudio.Package.LanguageService.OnIdle calls OnCaretMoved which calls TypeAndMemberDropdownBars.SynchronizeDropdowns directly if the TypeAndMemberDropdownBars object exists in the CodeWindowManager object.

Applies to