IVsPersistSolutionOpts.SaveUserOptions(IVsSolutionPersistence) Method

Definition

Saves user options for a given solution.

public:
 int SaveUserOptions(Microsoft::VisualStudio::Shell::Interop::IVsSolutionPersistence ^ pPersistence);
public:
 int SaveUserOptions(Microsoft::VisualStudio::Shell::Interop::IVsSolutionPersistence ^ pPersistence);
int SaveUserOptions(Microsoft::VisualStudio::Shell::Interop::IVsSolutionPersistence const & pPersistence);
public int SaveUserOptions (Microsoft.VisualStudio.Shell.Interop.IVsSolutionPersistence pPersistence);
abstract member SaveUserOptions : Microsoft.VisualStudio.Shell.Interop.IVsSolutionPersistence -> int
Public Function SaveUserOptions (pPersistence As IVsSolutionPersistence) As Integer

Parameters

pPersistence
IVsSolutionPersistence

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

Returns

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.

Applies to