Freigeben über


IVsSolutionPersistence.LoadPackageUserOpts Method

Definition

Enables the loading of package-level user options that are stored in one or more named streams in the solution .sln file. This method allows the caller to name the option stream (or streams) to be loaded.

public:
 int LoadPackageUserOpts(Microsoft::VisualStudio::Shell::Interop::IVsPersistSolutionOpts ^ pPSO, System::String ^ pszKey);
public:
 int LoadPackageUserOpts(Microsoft::VisualStudio::Shell::Interop::IVsPersistSolutionOpts ^ pPSO, Platform::String ^ pszKey);
int LoadPackageUserOpts(Microsoft::VisualStudio::Shell::Interop::IVsPersistSolutionOpts const & pPSO, std::wstring const & pszKey);
public int LoadPackageUserOpts (Microsoft.VisualStudio.Shell.Interop.IVsPersistSolutionOpts pPSO, string pszKey);
abstract member LoadPackageUserOpts : Microsoft.VisualStudio.Shell.Interop.IVsPersistSolutionOpts * string -> int
Public Function LoadPackageUserOpts (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 be opened in the options file storage.

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