IVsPersistSolutionOpts.LoadUserOptions(IVsSolutionPersistence, UInt32) 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] Pointer to 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.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsPersistSolutionOpts::LoadUserOptions(  
   [in] IVsSolutionPersistence *pPersistence,  
   [in] VSLOADUSEROPTS grfLoadOpts  
);  

This method is invoked by the environment each time a VSPackage invokes the LoadPackageUserOpts method.

Applies to