次の方法で共有


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

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