Share via


IVsPersistSolutionOpts.SaveUserOptions Method

Saves user options for a given solution.

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

Syntax

'Declaration
Function SaveUserOptions ( _
    pPersistence As IVsSolutionPersistence _
) As Integer
int SaveUserOptions(
    IVsSolutionPersistence pPersistence
)
int SaveUserOptions(
    [InAttribute] IVsSolutionPersistence^ pPersistence
)
abstract SaveUserOptions : 
        pPersistence:IVsSolutionPersistence -> int
function SaveUserOptions(
    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 IVsPersistSolutionOpts::SaveUserOptions(
   [in] IVsSolutionPersistence *pPersistence
);

This method calls the SavePackageUserOpts method for each separate stream to be written to the user options file.

.NET Framework Security

See Also

Reference

IVsPersistSolutionOpts Interface

Microsoft.VisualStudio.Shell.Interop Namespace