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.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
用法
Dim instance As LanguagePreferences
instance.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
- 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.