Partager via


IVsPersistSolutionProps.SaveSolutionProps Method

Saves solution properties to its .sln file.

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

Syntax

'Declaration
Function SaveSolutionProps ( _
    pHierarchy As IVsHierarchy, _
    pPersistence As IVsSolutionPersistence _
) As Integer
int SaveSolutionProps(
    IVsHierarchy pHierarchy,
    IVsSolutionPersistence pPersistence
)
int SaveSolutionProps(
    [InAttribute] IVsHierarchy^ pHierarchy, 
    [InAttribute] IVsSolutionPersistence^ pPersistence
)
abstract SaveSolutionProps : 
        pHierarchy:IVsHierarchy * 
        pPersistence:IVsSolutionPersistence -> int
function SaveSolutionProps(
    pHierarchy : IVsHierarchy, 
    pPersistence : IVsSolutionPersistence
) : int

Parameters

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsPersistSolutionProps::SaveSolutionProps(
   [in] IVsHierarchy *pHierarchy,
   [in] IVsSolutionPersistence *pPersistence
);

.NET Framework Security

See Also

Reference

IVsPersistSolutionProps Interface

Microsoft.VisualStudio.Shell.Interop Namespace