IVsUserSettings Interface
This interface is implemented by VSPackages that must have their state information persisted by the Visual Studio settings mechanism.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in microsoft.visualstudio.shell.interop.8.0.dll)
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in microsoft.visualstudio.shell.interop.8.0.dll)
Persisting a VSPackage configuration by using the IVsPackage interface requires:
-
Registration of the VSPackage as able to provide Visual Studio settings support. This is referred to as defining a Custom Settings Point. For more information see, Persisting Settings
-
The implementation of two of the IVsPackage interface methods, ExportSettings and ImportSettings.
Implementation of the IVsUserSettingsQuery interface is optional. Implement it if you want to manage when settings are saved.
For more information, see How to: Export Settings by Using Interop Assemblies and How to: Use Interop Assemblies to Import Settings.
Notes to Implementers Implement on interop assembly-based VSPackages that are derived from IVsPackage, to participate in the Visual Studio settings mechanism when a user clicks Import and Export Settings on the Tools menu.