Condividi tramite


LanguagePreferences.Apply Method

Definition

Applies all changes made to the preferences.

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

Remarks

This method applies any changes made to the preferences maintained by the LanguagePreferences class to memory. The changes can appear when the editor views are refreshed. If you have any additional settings for your language service added to a derived version of the LanguagePreferences class, then override this method to apply those settings to your language service.

The base method calls SetUserPreferences2 with the LANGPREFERENCES2 structure maintained by the LanguagePreferences class.

This method is called only if you call it from your own implementation of a language service.

Applies to