Share via


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: System.Int32

    [in] Inidicates if any user options are to be preloaded. If true, the user options are preloaded.

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

See Also

Reference

IVsPersistSolutionOpts2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace