共用方式為


IVsSolutionPersistence.SavePackageUserOpts Method

Definition

Writes user options to the solution file. Saves package-level user options to one or more named streams in the solution .sln file.

public:
 int SavePackageUserOpts(Microsoft::VisualStudio::Shell::Interop::IVsPersistSolutionOpts ^ pPSO, System::String ^ pszKey);
public:
 int SavePackageUserOpts(Microsoft::VisualStudio::Shell::Interop::IVsPersistSolutionOpts ^ pPSO, Platform::String ^ pszKey);
int SavePackageUserOpts(Microsoft::VisualStudio::Shell::Interop::IVsPersistSolutionOpts const & pPSO, std::wstring const & pszKey);
public int SavePackageUserOpts (Microsoft.VisualStudio.Shell.Interop.IVsPersistSolutionOpts pPSO, string pszKey);
abstract member SavePackageUserOpts : Microsoft.VisualStudio.Shell.Interop.IVsPersistSolutionOpts * string -> int
Public Function SavePackageUserOpts (pPSO As IVsPersistSolutionOpts, pszKey As String) As Integer

Parameters

pPSO
IVsPersistSolutionOpts

[in] Pointer to the IVsPersistSolutionOpts interface.

pszKey
String

[in] Name of the stream to which options are to be saved.

Returns

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

Remarks

This method is safe to access from any thread.

Applies to