LanguagePreferences.Apply Method
Applies all changes made to the preferences.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
Public Overridable Sub Apply
Dim instance As LanguagePreferences
instance.Apply()
public virtual void Apply()
public:
virtual void Apply()
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.
Permissions
- 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.