Share via


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

‘선언
Function EnsureSolutionIsLoaded ( _
    grfFlags As UInteger _
) As Integer
‘사용 방법
Dim instance As IVsSolution4
Dim grfFlags As UInteger
Dim returnValue As Integer

returnValue = instance.EnsureSolutionIsLoaded(grfFlags)
int EnsureSolutionIsLoaded(
    uint grfFlags
)
int EnsureSolutionIsLoaded(
    [InAttribute] unsigned int grfFlags
)
abstract EnsureSolutionIsLoaded : 
        grfFlags:uint32 -> int 
function EnsureSolutionIsLoaded(
    grfFlags : uint
) : int

Parameters

Return Value

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

IVsSolution4 Members

Microsoft.VisualStudio.Shell.Interop Namespace