Bagikan melalui


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)

Syntax

'Declaration
<GuidAttribute("D48DB33C-0F89-47AD-AB42-D6683608BD60")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface IVsSolutionLoadManagerSupport
[GuidAttribute("D48DB33C-0F89-47AD-AB42-D6683608BD60")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsSolutionLoadManagerSupport
[GuidAttribute(L"D48DB33C-0F89-47AD-AB42-D6683608BD60")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
public interface class IVsSolutionLoadManagerSupport
[<GuidAttribute("D48DB33C-0F89-47AD-AB42-D6683608BD60")>]
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
type IVsSolutionLoadManagerSupport =  interface end
public interface IVsSolutionLoadManagerSupport

The IVsSolutionLoadManagerSupport type exposes the following members.

Methods

  Name Description
Public method GetProjectLoadPriority Gets the project load priority, which determines whether the project should be kept as an unloaded project the next time the solution is opened.
Public method SetProjectLoadPriority Sets the project load priority, which determines whether the project should be kept as an unloaded project the next time the solution is opened.

Top

Remarks

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.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace