共用方式為


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)

Syntax

'宣告
<InterfaceTypeAttribute()> _
<GuidAttribute("67A65088-52F3-4C47-B829-1B53A112E8DC")> _
Public Interface IVsSolutionPersistence
'用途
Dim instance As IVsSolutionPersistence
[InterfaceTypeAttribute()]
[GuidAttribute("67A65088-52F3-4C47-B829-1B53A112E8DC")]
public interface IVsSolutionPersistence
[InterfaceTypeAttribute()]
[GuidAttribute(L"67A65088-52F3-4C47-B829-1B53A112E8DC")]
public interface class IVsSolutionPersistence
public interface IVsSolutionPersistence

Remarks

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 Solution Extender.

Notes to Callers:

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

See Also

Reference

IVsSolutionPersistence Members

Microsoft.VisualStudio.Shell.Interop Namespace