IVsSolutionPersistence Interface


Facilitates writing package-specific properties and options into the solution file (.sln), and, conversely, the loading of properties and options from the file.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

type IVsSolutionPersistence = interface end

System_CAPS_pubmethodLoadPackageUserOpts(IVsPersistSolutionOpts, String)

Enables the loading of package-level user options that are stored in one or more named streams in the solution .sln file. This method allows the caller to name the option stream (or streams) to be loaded.

System_CAPS_pubmethodSavePackageSolutionProps(Int32, IVsHierarchy, IVsPersistSolutionProps, String)

Writes properties to the solution .sln file.

System_CAPS_pubmethodSavePackageUserOpts(IVsPersistSolutionOpts, String)

Writes user options to the solution file. Saves package-level user options to one or more named streams in the solution .sln file.

Persistence is managed by the solution, and so the interface is called through its associated service, SVsSolutionPersistence.

See illustrations of the implementation and/or calling of this interface in the sample .545e349b-a992-4a4d-9ad8-1d576cef3a3e

Notes to Callers:

Upon saving package-specific properties or options to the .sln file, or loading properties or options from the .sln file.

Return to top