IVsPersistSolutionOpts.SaveUserOptions(IVsSolutionPersistence) Method

Definition

Saves user options for a given solution.

C++/CX
public:
 int SaveUserOptions(Microsoft::VisualStudio::Shell::Interop::IVsSolutionPersistence ^ pPersistence);

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

Implementors of this method are expected to be safe to be accesssed from any thread if its owner is passed to IVsSolutionPersistence on a background thread.

Applies to

Produit Versions
Visual Studio SDK 2015, 2017, 2019, 2022