共用方式為


IVsPersistSolutionProps Interface

Definition

Enables VSPackages to write non-user-specific solution properties into the solution .sln file.

public interface class IVsPersistSolutionProps : Microsoft::VisualStudio::Shell::Interop::IVsPersistSolutionOpts
public interface class IVsPersistSolutionProps : Microsoft::VisualStudio::Shell::Interop::IVsPersistSolutionOpts
__interface IVsPersistSolutionProps : Microsoft::VisualStudio::Shell::Interop::IVsPersistSolutionOpts
[System.Runtime.InteropServices.Guid("0D0E68EA-C910-45A7-8C24-7BBFA7D2D201")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsPersistSolutionProps : Microsoft.VisualStudio.Shell.Interop.IVsPersistSolutionOpts
[System.Runtime.InteropServices.Guid("0D0E68EA-C910-45A7-8C24-7BBFA7D2D201")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsPersistSolutionProps : Microsoft.VisualStudio.Shell.Interop.IVsPersistSolutionOpts
[<System.Runtime.InteropServices.Guid("0D0E68EA-C910-45A7-8C24-7BBFA7D2D201")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsPersistSolutionProps = interface
    interface IVsPersistSolutionOpts
[<System.Runtime.InteropServices.Guid("0D0E68EA-C910-45A7-8C24-7BBFA7D2D201")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsPersistSolutionProps = interface
    interface IVsPersistSolutionOpts
Public Interface IVsPersistSolutionProps
Implements IVsPersistSolutionOpts
Attributes
Implements

Remarks

Implementors of this interface are expected to be safe to be accesssed from any thread if passed to IVsSolutionPersistence on a background thread.

Notes to Implementers

Implemented by VSPackages to save solution property information into the solution (.sln) file.

Methods

LoadUserOptions(IVsSolutionPersistence, UInt32)

Loads user options for a given solution.

OnProjectLoadFailure(IVsHierarchy, String, String, String)

Allows cleanup and memory management in cases where project fails to load.

QuerySaveSolutionProps(IVsHierarchy, VSQUERYSAVESLNPROPS[])

Creates a property bag for storing solution properties.

ReadSolutionProps(IVsHierarchy, String, String, String, Int32, IPropertyBag)

Reads out solution properties from its .sln file.

ReadUserOptions(IStream, String)

Reads user options for a given solution.

SaveSolutionProps(IVsHierarchy, IVsSolutionPersistence)

Saves solution properties to its .sln file.

SaveUserOptions(IVsSolutionPersistence)

Saves user options for a given solution.

WriteSolutionProps(IVsHierarchy, String, IPropertyBag)

Writes solution properties to the .sln file.

WriteUserOptions(IStream, String)

Writes user options for a given solution.

Applies to