Udostępnij za pośrednictwem


SolutionEvents Class

Definition

Managed-friendly wrapper for IVsSolutionEvents

public ref class SolutionEvents : Microsoft::VisualStudio::Shell::Events::SingletonEventSource<Microsoft::VisualStudio::Shell::Events::SolutionEvents ^>, Microsoft::VisualStudio::Shell::Interop::IVsSolutionEvents3, Microsoft::VisualStudio::Shell::Interop::IVsSolutionEvents4, Microsoft::VisualStudio::Shell::Interop::IVsSolutionEvents5, Microsoft::VisualStudio::Shell::Interop::IVsSolutionLoadEvents
public ref class SolutionEvents : Microsoft::VisualStudio::Shell::Events::SingletonEventSource<Microsoft::VisualStudio::Shell::Events::SolutionEvents ^>, Microsoft::VisualStudio::Shell::Interop::IVsSolutionEvents3, Microsoft::VisualStudio::Shell::Interop::IVsSolutionEvents4, Microsoft::VisualStudio::Shell::Interop::IVsSolutionEvents5, Microsoft::VisualStudio::Shell::Interop::IVsSolutionEvents6, Microsoft::VisualStudio::Shell::Interop::IVsSolutionEvents7, Microsoft::VisualStudio::Shell::Interop::IVsSolutionEvents8, Microsoft::VisualStudio::Shell::Interop::IVsSolutionLoadEvents
[Windows::Foundation::Metadata::WebHostHidden]
class SolutionEvents : Microsoft::VisualStudio::Shell::Events::SingletonEventSource<Microsoft::VisualStudio::Shell::Events::SolutionEvents>, Microsoft::VisualStudio::Shell::Interop::IVsSolutionEvents3, Microsoft::VisualStudio::Shell::Interop::IVsSolutionEvents4, Microsoft::VisualStudio::Shell::Interop::IVsSolutionEvents5, Microsoft::VisualStudio::Shell::Interop::IVsSolutionLoadEvents
public class SolutionEvents : Microsoft.VisualStudio.Shell.Events.SingletonEventSource<Microsoft.VisualStudio.Shell.Events.SolutionEvents>, Microsoft.VisualStudio.Shell.Interop.IVsSolutionEvents3, Microsoft.VisualStudio.Shell.Interop.IVsSolutionEvents4, Microsoft.VisualStudio.Shell.Interop.IVsSolutionEvents5, Microsoft.VisualStudio.Shell.Interop.IVsSolutionLoadEvents
public class SolutionEvents : Microsoft.VisualStudio.Shell.Events.SingletonEventSource<Microsoft.VisualStudio.Shell.Events.SolutionEvents>, Microsoft.VisualStudio.Shell.Interop.IVsSolutionEvents3, Microsoft.VisualStudio.Shell.Interop.IVsSolutionEvents4, Microsoft.VisualStudio.Shell.Interop.IVsSolutionEvents5, Microsoft.VisualStudio.Shell.Interop.IVsSolutionEvents6, Microsoft.VisualStudio.Shell.Interop.IVsSolutionEvents7, Microsoft.VisualStudio.Shell.Interop.IVsSolutionEvents8, Microsoft.VisualStudio.Shell.Interop.IVsSolutionLoadEvents
type SolutionEvents = class
    inherit SingletonEventSource<SolutionEvents>
    interface IVsSolutionEvents
    interface IVsSolutionEvents2
    interface IVsSolutionEvents3
    interface IVsSolutionEvents4
    interface IVsSolutionEvents5
    interface IVsSolutionLoadEvents
type SolutionEvents = class
    inherit SingletonEventSource<SolutionEvents>
    interface IVsSolutionEvents
    interface IVsSolutionEvents2
    interface IVsSolutionEvents3
    interface IVsSolutionEvents4
    interface IVsSolutionEvents5
    interface IVsSolutionEvents6
    interface IVsSolutionEvents7
    interface IVsSolutionEvents8
    interface IVsSolutionLoadEvents
Public Class SolutionEvents
Inherits SingletonEventSource(Of SolutionEvents)
Implements IVsSolutionEvents3, IVsSolutionEvents4, IVsSolutionEvents5, IVsSolutionLoadEvents
Public Class SolutionEvents
Inherits SingletonEventSource(Of SolutionEvents)
Implements IVsSolutionEvents3, IVsSolutionEvents4, IVsSolutionEvents5, IVsSolutionEvents6, IVsSolutionEvents7, IVsSolutionEvents8, IVsSolutionLoadEvents
Inheritance
Implements

Constructors

SolutionEvents()

Instantiates a new instance of SolutionEvents.

Properties

IsAdvised

Indicates whether this EventSource is advised on its VS event source

(Inherited from EventSource)

Methods

AddHandler(Delegate, String)

Adds an event handler for the specified key

(Inherited from EventSource)
Advise()

Advises solution events when the first event sink is added. This method is guaranteed to be called on the UI thread, so no synchronization is required to protect _cookie.

GetHandler(String)

Returns the handler for the given key, or null if none exists.

(Inherited from EventSource)
HasHandler(String)

Indicates whether the event identified by the given key has at least one handler

(Inherited from EventSource)
RaiseEvent<TEventArgs>(Object, TEventArgs, String)

Raises the event identified by key. All event handlers are called, regardless of whether an individual handler throws an exception.

(Inherited from EventSource)
RemoveHandler(Delegate, String)

Removes an event handler for the specified key.

(Inherited from EventSource)
Unadvise()

Unadvises solution events when the last event sink is removed. This method is guaranteed to be called on the UI thread, so no synchronization is required to protect _cookie.

Events

OnAfterAsynchOpenProject

Occurs on/after the project is loaded asynchronously.

OnAfterBackgroundSolutionLoadComplete

Occurs on/after the solution is finished loading in the background.

OnAfterChangeProjectParent

Occurs on/after the project has changed parents.

OnAfterCloseFolder
OnAfterCloseSolution

Occurs on/after the solution is closed.

OnAfterClosingChildren

Occurs on/after the solution's children have changed.

OnAfterLoadAllDeferredProjects
OnAfterLoadProject

Occurs on/after the project is loaded.

OnAfterLoadProjectBatch

Occurs on/after the project is batch loaded.

OnAfterMergeSolution

Occurs on/after the solution is merged.

OnAfterOpenFolder
OnAfterOpeningChildren

lOccurs on/after the solution's children are open.

OnAfterOpenProject

Occurs on/after the project is open.

OnAfterOpenSolution

Occurs on/after the solution is open.

OnAfterProjectRegisteredInRunningDocumentTable
OnAfterRenameProject

Occurs on/after the project is renamed.

OnAfterRenameSolution
OnBeforeBackgroundSolutionLoadBegins

Occurs on/before the solution begins to be loaded in the background.

OnBeforeCloseFolder
OnBeforeCloseProject

Occurs on/before the project is closed.

OnBeforeCloseSolution

Occurs on/before the solution is closed.

OnBeforeClosingChildren

Occurs on/before the solution's children are closed.

OnBeforeLoadProjectBatch

Occurs on/before the project is batch loaded.

OnBeforeOpeningChildren

Occurs on/before the solution's children are open.

OnBeforeOpenProject

Occurs on/before the project is open.

OnBeforeOpenSolution

Occurs on/before the solution is open.

OnBeforeProjectRegisteredInRunningDocumentTable
OnBeforeUnloadProject

Occurs on/before the project is unloaded.

OnQueryBackgroundLoadProjectBatch

Occurs when there is a query about batch loading the project in the background.

OnQueryChangeProjectParent

Occurs when there is a query about changing the project's parent.

OnQueryCloseFolder
OnQueryCloseProject

Occurs when there is a query about closing the project.

OnQueryCloseSolution

Occurs when there is a query about closing the solution.

OnQueryUnloadProject

Occurs when there is a query about unloading the project.

Explicit Interface Implementations

IVsSolutionEvents.OnAfterCloseSolution(Object)

Occurs on/after the solution is closed.

IVsSolutionEvents.OnAfterLoadProject(IVsHierarchy, IVsHierarchy)

Occurs on/after the project is loaded.

IVsSolutionEvents.OnAfterOpenProject(IVsHierarchy, Int32)

Occurs on/after the project is open

IVsSolutionEvents.OnAfterOpenSolution(Object, Int32)

Occurs on/after the solution is open.

IVsSolutionEvents.OnBeforeCloseProject(IVsHierarchy, Int32)

Occurs on/before the project is closed.

IVsSolutionEvents.OnBeforeCloseSolution(Object)

Occurs on/before the solution is closed.

IVsSolutionEvents.OnBeforeUnloadProject(IVsHierarchy, IVsHierarchy)

Occurs on/before the project is unloaded.

IVsSolutionEvents.OnQueryCloseProject(IVsHierarchy, Int32, Int32)

Occurs when there is a query about closing the project.

IVsSolutionEvents.OnQueryCloseSolution(Object, Int32)

Occurs when there is a query about closing the solution.

IVsSolutionEvents.OnQueryUnloadProject(IVsHierarchy, Int32)

Occurs when there is a query about unloading the project.

IVsSolutionEvents2.OnAfterCloseSolution(Object)

Occurs on/after the solution is closed.

IVsSolutionEvents2.OnAfterLoadProject(IVsHierarchy, IVsHierarchy)

Occurs on/after the project is loaded.

IVsSolutionEvents2.OnAfterMergeSolution(Object)

Occurs on/after a solution is merged.

IVsSolutionEvents2.OnAfterOpenProject(IVsHierarchy, Int32)

Occurs on/after the project is opened.

IVsSolutionEvents2.OnAfterOpenSolution(Object, Int32)

Occurs on/after the solution is open.

IVsSolutionEvents2.OnBeforeCloseProject(IVsHierarchy, Int32)

Occurs on/before the project is closed.

IVsSolutionEvents2.OnBeforeCloseSolution(Object)

Occurs on/before the solution is closed.

IVsSolutionEvents2.OnBeforeUnloadProject(IVsHierarchy, IVsHierarchy)

Occurs on/before the project is unloaded.

IVsSolutionEvents2.OnQueryCloseProject(IVsHierarchy, Int32, Int32)

Occurs when there is a query about closing the project.

IVsSolutionEvents2.OnQueryCloseSolution(Object, Int32)

Occurs when there is a query about closing the solution.

IVsSolutionEvents2.OnQueryUnloadProject(IVsHierarchy, Int32)

Occurs when there is a query about unloading the project.

IVsSolutionEvents3.OnAfterCloseSolution(Object)

Occurs on/after the solution is closed.

IVsSolutionEvents3.OnAfterClosingChildren(IVsHierarchy)

Occurs on/after the solution's children are closed.

IVsSolutionEvents3.OnAfterLoadProject(IVsHierarchy, IVsHierarchy)

Occurs on/after the project is loaded.

IVsSolutionEvents3.OnAfterMergeSolution(Object)

Occurs on/after the solution is merged.

IVsSolutionEvents3.OnAfterOpeningChildren(IVsHierarchy)

Occurs on/after the solution's children are opened.

IVsSolutionEvents3.OnAfterOpenProject(IVsHierarchy, Int32)

Occurs on/after the project is open.

IVsSolutionEvents3.OnAfterOpenSolution(Object, Int32)

Occurs on/after the solution is open.

IVsSolutionEvents3.OnBeforeCloseProject(IVsHierarchy, Int32)

Occurs on/before the project is closed.

IVsSolutionEvents3.OnBeforeCloseSolution(Object)

Occurs on/before the solution is closed.

IVsSolutionEvents3.OnBeforeClosingChildren(IVsHierarchy)

Occurs on/before the solution's children are closed.

IVsSolutionEvents3.OnBeforeOpeningChildren(IVsHierarchy)

Occurs on/before the children are opened.

IVsSolutionEvents3.OnBeforeUnloadProject(IVsHierarchy, IVsHierarchy)

Occurs on/before the project is unloaded.

IVsSolutionEvents3.OnQueryCloseProject(IVsHierarchy, Int32, Int32)

Occurs when there is a query about closing the project.

IVsSolutionEvents3.OnQueryCloseSolution(Object, Int32)

Occurs when there is a query about closing the solution.

IVsSolutionEvents3.OnQueryUnloadProject(IVsHierarchy, Int32)

Occurs when there is a query about unloading a project.

IVsSolutionEvents4.OnAfterAsynchOpenProject(IVsHierarchy, Int32)

Occurs on/after a project is opened asynchronously.

IVsSolutionEvents4.OnAfterChangeProjectParent(IVsHierarchy)

Occurs on/after the project has changed parents.

IVsSolutionEvents4.OnAfterRenameProject(IVsHierarchy)

Occurs on/after the project was renamed.

IVsSolutionEvents4.OnQueryChangeProjectParent(IVsHierarchy, IVsHierarchy, Int32)

Occurs when there is a query about changing the project's parent.

IVsSolutionEvents5.OnBeforeOpenProject(Guid, Guid, String)

Occurs on/before the project is open.

IVsSolutionEvents6.OnAfterProjectRegisteredInRunningDocumentTable(Guid, String, UInt32)
IVsSolutionEvents6.OnBeforeProjectRegisteredInRunningDocumentTable(Guid, String)
IVsSolutionEvents7.OnAfterCloseFolder(String)
IVsSolutionEvents7.OnAfterLoadAllDeferredProjects()
IVsSolutionEvents7.OnAfterOpenFolder(String)
IVsSolutionEvents7.OnBeforeCloseFolder(String)
IVsSolutionEvents7.OnQueryCloseFolder(String, Int32)
IVsSolutionEvents8.OnAfterRenameSolution(String, String)
IVsSolutionLoadEvents.OnAfterBackgroundSolutionLoadComplete()

Occurs on/after the solution is finished loading in the background.

IVsSolutionLoadEvents.OnAfterLoadProjectBatch(Boolean)

Occurs on/after the project is batch loaded.

IVsSolutionLoadEvents.OnBeforeBackgroundSolutionLoadBegins()

Occurs on/before beginning a background solution load.

IVsSolutionLoadEvents.OnBeforeLoadProjectBatch(Boolean)

Occurs on/before the project is batch loaded.

IVsSolutionLoadEvents.OnBeforeOpenSolution(String)

Occurs on/before the solution is open.

IVsSolutionLoadEvents.OnQueryBackgroundLoadProjectBatch(Boolean)

Occurs when there is a query about batch loading a project in the background.

Applies to