Dela via


IVsPrioritizedSolutionEventsSink Interface

Sinks (event listeners) implementing this interface will get priority notification of solution events.

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

Syntax

'Declaration
<GuidAttribute("6E8674B2-EFA9-4CD6-9743-CC7A549BB0EB")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface IVsPrioritizedSolutionEventsSink
[GuidAttribute("6E8674B2-EFA9-4CD6-9743-CC7A549BB0EB")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsPrioritizedSolutionEventsSink
[GuidAttribute(L"6E8674B2-EFA9-4CD6-9743-CC7A549BB0EB")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
public interface class IVsPrioritizedSolutionEventsSink
[<GuidAttribute("6E8674B2-EFA9-4CD6-9743-CC7A549BB0EB")>]
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
type IVsPrioritizedSolutionEventsSink =  interface end
public interface IVsPrioritizedSolutionEventsSink

Remarks

The event order produced by this interface is as follows:

  • OnAfter*** events will arrive before other non-prioritized sinks.

  • OnBefore*** events will arrive after other non-prioritized sinks.

For example, a background compiler may need to be started before other dependent components start using it, and it may need to shut down after the other dependent components stop using it. The background compiler can be initialized when the OnAfterBackgroundSolutionLoadComplete event is fired, so that when the other components respond to the OnAfterBackgroundSolutionLoadComplete event, the compiler is ready.

This interface is typically implemented by project systems to allow them to correctly initialize during solution load. This interface is used in conjunction with IVsPrioritizedSolutionEvents; other components should refrain from using this interface.Other components should refrain from using this interface.

In Visual Studio 2012, this interface only prioritizes IVsSolutionLoadEvents.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace

IVsPrioritizedSolutionEvents