Compartir a través de


IVsSolution4.EnsureSolutionIsLoaded Method

Forces the loading of the entire solution synchronously before this function returns.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Syntax

'Declaration
Function EnsureSolutionIsLoaded ( _
    grfFlags As UInteger _
) As Integer
int EnsureSolutionIsLoaded(
    uint grfFlags
)
int EnsureSolutionIsLoaded(
    [InAttribute] unsigned int grfFlags
)
abstract EnsureSolutionIsLoaded : 
        grfFlags:uint32 -> int
function EnsureSolutionIsLoaded(
    grfFlags : uint
) : int

Parameters

  • grfFlags
    Type: UInt32

    The __VSBSLFLAGS that specify how the project is to be loaded.

Return Value

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

Remarks

By default Visual Studio loads only PLP_DemandLoad and PLP_BackgroundLoad projects. If grfFlags includes VSBSLFLAGS_LoadAllPendingProjects, then Visual Studio also loads PLP_LoadIfNeeded projects, so that all projects except PLP_ExplicitLoadOnly will be loaded.

.NET Framework Security

See Also

Reference

IVsSolution4 Interface

Microsoft.VisualStudio.Shell.Interop Namespace