다음을 통해 공유


LanguagePreferences.Init Method

Initializes LanguagePreferences.

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

Syntax

‘선언
Public Overridable Sub Init
‘사용 방법
Dim instance As LanguagePreferences

instance.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

LanguagePreferences Members

Microsoft.VisualStudio.Package Namespace