Compartilhar via


LanguagePreferences.Apply Method

Applies all changes made to the preferences.

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 Apply
public virtual void Apply()
public:
virtual void Apply()
abstract Apply : unit -> unit  
override Apply : unit -> unit
public function Apply()

Remarks

This method applies any changes made to the preferences maintained by the LanguagePreferences class to memory. The changes can appear when the editor views are refreshed. If you have any additional settings for your language service added to a derived version of the LanguagePreferences class, then override this method to apply those settings to your language service.

The base method calls SetUserPreferences2 with the LANGPREFERENCES2 structure maintained by the LanguagePreferences class.

This method is called only if you call it from your own implementation of a language service.

.NET Framework Security

See Also

Reference

LanguagePreferences Class

Microsoft.VisualStudio.Package Namespace