共用方式為


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

'宣告
<GuidAttribute("D48DB33C-0F89-47AD-AB42-D6683608BD60")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface IVsSolutionLoadManagerSupport
'用途
Dim instance As 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

Remarks

This interface is passed to the VSPROPID_ActiveSolutionLoadManager 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 [M:Microsoft.VisualStudio.Shell.Interop.IVsSolutionLoadEvents::OnBeforeOpenSolution] or during ReadSolutionProps for the pre Solution section.

See Also

Reference

IVsSolutionLoadManagerSupport Members

Microsoft.VisualStudio.Shell.Interop Namespace