LanguagePreferences.Apply Method
Applies all changes made to the preferences.
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 Apply
public virtual void 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
- 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.