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.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.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 GetLanguagePreferences
public virtual void 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.