Export (0) Print
Expand All

IVsSolutionLoadManagerSupport Interface

Provides support for managing the way projects in a solution are loaded.

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

[GuidAttribute("D48DB33C-0F89-47AD-AB42-D6683608BD60")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsSolutionLoadManagerSupport

The IVsSolutionLoadManagerSupport type exposes the following members.

  NameDescription
Public methodGetProjectLoadPriorityGets the project load priority, which determines whether the project should be kept as an unloaded project the next time the solution is opened.
Public methodSetProjectLoadPrioritySets the project load priority, which determines whether the project should be kept as an unloaded project the next time the solution is opened.
Top

This interface is passed to the __VSPROPID4 object during the Open Solution process in the implementation OnBeforeOpenProject. This allows the Solution Load Manager to control the way projects are loaded during the Open Solution operation. Projects can be loaded immediately, loaded in the background (at idle), left to be loaded if needed, or set to stay unloaded. A Solution Load Manager is expected to implement the IVsSolutionLoadManager interface. A common approach is to have VSPackage that implements the Solution Load Manager AutoLoad for the UI context SolutionOpening_string, for example [ProvideAutoLoad(ProvideAutoLoad(VSConstants.UIContext.SolutionOpening_string)]. This property may also be set during OnBeforeOpenSolution() or during ReadSolutionProps for the pre Solution section.

Community Additions

ADD
Show:
© 2014 Microsoft