This documentation is archived and is not being maintained.

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)

int EnsureSolutionIsLoaded(
	uint grfFlags


Type: System.UInt32
The __VSBSLFLAGS() that specify how the project is to be loaded.

Return Value

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

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.