다음을 통해 공유


IVsPersistSolutionProps.LoadUserOptions Method

Definition

Loads user options for a given solution.

public:
 int LoadUserOptions(Microsoft::VisualStudio::Shell::Interop::IVsSolutionPersistence ^ pPersistence, System::UInt32 grfLoadOpts);
public:
 int LoadUserOptions(Microsoft::VisualStudio::Shell::Interop::IVsSolutionPersistence ^ pPersistence, unsigned int grfLoadOpts);
int LoadUserOptions(Microsoft::VisualStudio::Shell::Interop::IVsSolutionPersistence const & pPersistence, unsigned int grfLoadOpts);
public int LoadUserOptions (Microsoft.VisualStudio.Shell.Interop.IVsSolutionPersistence pPersistence, uint grfLoadOpts);
abstract member LoadUserOptions : Microsoft.VisualStudio.Shell.Interop.IVsSolutionPersistence * uint32 -> int
Public Function LoadUserOptions (pPersistence As IVsSolutionPersistence, grfLoadOpts As UInteger) As Integer

Parameters

pPersistence
IVsSolutionPersistence

[in] the IVsSolutionPersistence interface on which the VSPackage should call its LoadPackageUserOpts(IVsPersistSolutionOpts, String) method for each stream name it wants to read from the user options (.opt) file.

grfLoadOpts
UInt32

[in] User options whose value is taken from the __VSLOADUSEROPTS DWORD.

Returns

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

Implements

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