Condividi tramite


LanguagePreferences.Init Method

Initializes LanguagePreferences.

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

Syntax

'Declaration
Public Overridable Sub Init
public virtual void Init()
public:
virtual void Init()
abstract Init : unit -> unit  
override Init : unit -> unit
public function 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.

.NET Framework Security

See Also

Reference

LanguagePreferences Class

Microsoft.VisualStudio.Package Namespace