共用方式為


LanguagePreferences.Init Method

Definition

Initializes LanguagePreferences.

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

Remarks

This method performs all the initialization for language preferences, including loading the preferences from the registry and obtaining user settings from Visual Studio.

The base method calls InitMachinePreferences to load the language service-specific registry entries and then calls InitUserPreferences to obtain the language service-oriented user settings.

This method must be called from your implementation of GetLanguagePreferences on the LanguageService class after instantiating the LanguagePreferences class.

Applies to