SaveUserOptions Method
Collapse the table of content
Expand the table of content

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)

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.

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.

Community Additions

ADD
Show:
© 2016 Microsoft