Partager via


LanguagePreferences.GetLanguagePreferences Method

Gets the modifiable user language settings from Visual Studio.

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

'Déclaration
Public Overridable Sub GetLanguagePreferences
'Utilisation
Dim instance As LanguagePreferences

instance.GetLanguagePreferences()
public virtual void GetLanguagePreferences()
public:
virtual void GetLanguagePreferences()
abstract GetLanguagePreferences : unit -> unit 
override GetLanguagePreferences : unit -> unit 
public function GetLanguagePreferences()

Remarks

This method obtains any language service-specific settings that the user can change. If your language service has any additional user-modifiable settings associated with it, you must derive a class from the LanguagePreferences class and override this method. Be sure to call the base method before your implementation of this method.

The base method calls the GetUserPreferences2 method to obtain the user language settings.

This method is typically called from InitUserPreferences.

.NET Framework Security

See Also

Reference

LanguagePreferences Class

LanguagePreferences Members

Microsoft.VisualStudio.Package Namespace