Export (0) Print
Expand All

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)

[InterfaceTypeAttribute(1)] 
[GuidAttribute("770E285D-3B7D-4342-B3C4-42BD9F53A300")] 
public interface IVsUserSettings
/** @attribute InterfaceTypeAttribute(1) */ 
/** @attribute GuidAttribute("770E285D-3B7D-4342-B3C4-42BD9F53A300") */ 
public interface IVsUserSettings
InterfaceTypeAttribute(1) 
GuidAttribute("770E285D-3B7D-4342-B3C4-42BD9F53A300") 
public interface IVsUserSettings

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.

Community Additions

ADD
Show:
© 2014 Microsoft