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

'Déclaration
Function SaveSolutionProps ( _
    pHierarchy As IVsHierarchy, _
    pPersistence As IVsSolutionPersistence _
) As Integer
'Utilisation
Dim instance As IVsPersistSolutionProps
Dim pHierarchy As IVsHierarchy
Dim pPersistence As IVsSolutionPersistence
Dim returnValue As Integer

returnValue = instance.SaveSolutionProps(pHierarchy, _
    pPersistence)
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: System.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

IVsPersistSolutionProps Members

Microsoft.VisualStudio.Shell.Interop Namespace