IVsPersistSolutionOpts::SaveUserOptions Method (IVsSolutionPersistence^)

 

Saves user options for a given solution.

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

int SaveUserOptions(
	IVsSolutionPersistence^ pPersistence
)

Parameters

pPersistence
Type: Microsoft.VisualStudio.Shell.Interop::IVsSolutionPersistence^

[in] Pointer to the IVsSolutionPersistence interface on which the VSPackage should call its SavePackageUserOpts method for each stream name it wants to write to the user options file.

Return Value

Type: System::Int32

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

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.

Return to top
Show: