IVsPersistSolutionOpts2.LoadUserOptionsEx Method
Loads user options for a given solution.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
Syntax
'Declaration
Sub LoadUserOptionsEx ( _
fPreLoad As Integer, _
pPersistence As IVsSolutionPersistence, _
grfLoadOpts As UInteger _
)
void LoadUserOptionsEx(
int fPreLoad,
IVsSolutionPersistence pPersistence,
uint grfLoadOpts
)
void LoadUserOptionsEx(
[InAttribute] int fPreLoad,
[InAttribute] IVsSolutionPersistence^ pPersistence,
[InAttribute] unsigned int grfLoadOpts
)
abstract LoadUserOptionsEx :
fPreLoad:int *
pPersistence:IVsSolutionPersistence *
grfLoadOpts:uint32 -> unit
function LoadUserOptionsEx(
fPreLoad : int,
pPersistence : IVsSolutionPersistence,
grfLoadOpts : uint
)
Parameters
fPreLoad
Type: Int32[in] Inidicates if any user options are to be preloaded. If true, the user options are preloaded.
pPersistence
Type: Microsoft.VisualStudio.Shell.Interop.IVsSolutionPersistence[in] Pointer to the IVsSolutionPersistence interface on which the VSPackage should call its LoadPackageUserOpts method for each stream name it wants to read from the user options (.opt) file.
grfLoadOpts
Type: UInt32[in] User options whose value is taken from the __VSLOADUSEROPTS DWORD.
Remarks
If your package implements IVsPersistSolutionOpts2, this method is called in preference to LoadUserOptions when opening the solution, after all synchronously loaded projects are opened, with fPreLoad=false. In addition, this method is also called for the same Solution User Options (SUO) immediately before any synchronous loaded projects are opened, with fPreLoad=true. This allows the package to preload any user options that may be queried by project factories while opening projects. LoadUserOptions(pPersistence, grfLoadOpts) behaves the same as LoadUserOptionsEx(FALSE, pPersistence, grfLoadOpts).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.