SolutionEvents SolutionEvents SolutionEvents SolutionEvents SolutionEvents SolutionEvents Interface

Definition

Provides events for changes to a solution. Use this object for functionality and refer to SolutionEventsClass for this object's documentation.

public interface class SolutionEvents : EnvDTE::_dispSolutionEvents_Event, EnvDTE::_SolutionEvents
public interface class SolutionEvents : EnvDTE::_dispSolutionEvents_Event, EnvDTE::_SolutionEvents
__interface SolutionEvents : EnvDTE::_dispSolutionEvents_Event, EnvDTE::_SolutionEvents
[System.Runtime.InteropServices.CoClass(typeof(EnvDTE.SolutionEventsClass))]
[System.Runtime.InteropServices.Guid("BF8BBF37-5415-46A9-940D-594CAD9DEC26")]
public interface SolutionEvents : EnvDTE._dispSolutionEvents_Event, EnvDTE._SolutionEvents
type SolutionEvents = interface
    interface _SolutionEvents
    interface _dispSolutionEvents_Event
Public Interface SolutionEvents
Implements _dispSolutionEvents_Event, _SolutionEvents
Derived
Attributes
Implements

Examples

public class MyClass : IDTExtensibility2  
{  
    private SolutionEvents _solnEvents;  
  
    private void MenuItemCallback(object sender, EventArgs e)  
    {  
        _solnEvents = dte.Events.SolutionEvents;  
  
        _solutionBeforeClosingEventHandler = new _dispSolutionEvents_BeforeClosingEventHandler(this.SolutionBeforeClosing);  
        _solnEvents.BeforeClosing += _solutionBeforeClosingEventHandler;  
    }  
  
    private _dispSolutionEvents_BeforeClosingEventHandler _solutionBeforeClosingEventHandler  
  
    private void SolutionBeforeClosing()  
    {  
        System.Windows.Forms.MessageBox.Show("SolutionBeforeClosing");  
    }  
}  

Remarks

The SolutionEvents object can go out of scope and be garbage collected before the solution is closed. To retain a reference to this object, declare a private variable in the class in which you implement the solution event handlers.

Methods

add_AfterClosing(_dispSolutionEvents_AfterClosingEventHandler) add_AfterClosing(_dispSolutionEvents_AfterClosingEventHandler) add_AfterClosing(_dispSolutionEvents_AfterClosingEventHandler) add_AfterClosing(_dispSolutionEvents_AfterClosingEventHandler) add_AfterClosing(_dispSolutionEvents_AfterClosingEventHandler) add_AfterClosing(_dispSolutionEvents_AfterClosingEventHandler)

Inherited from _dispSolutionEvents_Event

add_BeforeClosing(_dispSolutionEvents_BeforeClosingEventHandler) add_BeforeClosing(_dispSolutionEvents_BeforeClosingEventHandler) add_BeforeClosing(_dispSolutionEvents_BeforeClosingEventHandler) add_BeforeClosing(_dispSolutionEvents_BeforeClosingEventHandler) add_BeforeClosing(_dispSolutionEvents_BeforeClosingEventHandler) add_BeforeClosing(_dispSolutionEvents_BeforeClosingEventHandler)

Inherited from _dispSolutionEvents_Event

add_Opened(_dispSolutionEvents_OpenedEventHandler) add_Opened(_dispSolutionEvents_OpenedEventHandler) add_Opened(_dispSolutionEvents_OpenedEventHandler) add_Opened(_dispSolutionEvents_OpenedEventHandler) add_Opened(_dispSolutionEvents_OpenedEventHandler) add_Opened(_dispSolutionEvents_OpenedEventHandler)

Inherited from _dispSolutionEvents_Event

add_ProjectAdded(_dispSolutionEvents_ProjectAddedEventHandler) add_ProjectAdded(_dispSolutionEvents_ProjectAddedEventHandler) add_ProjectAdded(_dispSolutionEvents_ProjectAddedEventHandler) add_ProjectAdded(_dispSolutionEvents_ProjectAddedEventHandler) add_ProjectAdded(_dispSolutionEvents_ProjectAddedEventHandler) add_ProjectAdded(_dispSolutionEvents_ProjectAddedEventHandler)

Inherited from _dispSolutionEvents_Event

add_ProjectRemoved(_dispSolutionEvents_ProjectRemovedEventHandler) add_ProjectRemoved(_dispSolutionEvents_ProjectRemovedEventHandler) add_ProjectRemoved(_dispSolutionEvents_ProjectRemovedEventHandler) add_ProjectRemoved(_dispSolutionEvents_ProjectRemovedEventHandler) add_ProjectRemoved(_dispSolutionEvents_ProjectRemovedEventHandler) add_ProjectRemoved(_dispSolutionEvents_ProjectRemovedEventHandler)

Inherited from _dispSolutionEvents_Event

add_ProjectRenamed(_dispSolutionEvents_ProjectRenamedEventHandler) add_ProjectRenamed(_dispSolutionEvents_ProjectRenamedEventHandler) add_ProjectRenamed(_dispSolutionEvents_ProjectRenamedEventHandler) add_ProjectRenamed(_dispSolutionEvents_ProjectRenamedEventHandler) add_ProjectRenamed(_dispSolutionEvents_ProjectRenamedEventHandler) add_ProjectRenamed(_dispSolutionEvents_ProjectRenamedEventHandler)

Inherited from _dispSolutionEvents_Event

add_QueryCloseSolution(_dispSolutionEvents_QueryCloseSolutionEventHandler) add_QueryCloseSolution(_dispSolutionEvents_QueryCloseSolutionEventHandler) add_QueryCloseSolution(_dispSolutionEvents_QueryCloseSolutionEventHandler) add_QueryCloseSolution(_dispSolutionEvents_QueryCloseSolutionEventHandler) add_QueryCloseSolution(_dispSolutionEvents_QueryCloseSolutionEventHandler) add_QueryCloseSolution(_dispSolutionEvents_QueryCloseSolutionEventHandler)

Inherited from _dispSolutionEvents_Event

add_Renamed(_dispSolutionEvents_RenamedEventHandler) add_Renamed(_dispSolutionEvents_RenamedEventHandler) add_Renamed(_dispSolutionEvents_RenamedEventHandler) add_Renamed(_dispSolutionEvents_RenamedEventHandler) add_Renamed(_dispSolutionEvents_RenamedEventHandler) add_Renamed(_dispSolutionEvents_RenamedEventHandler)

Inherited from _dispSolutionEvents_Event

remove_AfterClosing(_dispSolutionEvents_AfterClosingEventHandler) remove_AfterClosing(_dispSolutionEvents_AfterClosingEventHandler) remove_AfterClosing(_dispSolutionEvents_AfterClosingEventHandler) remove_AfterClosing(_dispSolutionEvents_AfterClosingEventHandler) remove_AfterClosing(_dispSolutionEvents_AfterClosingEventHandler) remove_AfterClosing(_dispSolutionEvents_AfterClosingEventHandler)

Inherited from _dispSolutionEvents_Event

remove_BeforeClosing(_dispSolutionEvents_BeforeClosingEventHandler) remove_BeforeClosing(_dispSolutionEvents_BeforeClosingEventHandler) remove_BeforeClosing(_dispSolutionEvents_BeforeClosingEventHandler) remove_BeforeClosing(_dispSolutionEvents_BeforeClosingEventHandler) remove_BeforeClosing(_dispSolutionEvents_BeforeClosingEventHandler) remove_BeforeClosing(_dispSolutionEvents_BeforeClosingEventHandler)

Inherited from _dispSolutionEvents_Event

remove_Opened(_dispSolutionEvents_OpenedEventHandler) remove_Opened(_dispSolutionEvents_OpenedEventHandler) remove_Opened(_dispSolutionEvents_OpenedEventHandler) remove_Opened(_dispSolutionEvents_OpenedEventHandler) remove_Opened(_dispSolutionEvents_OpenedEventHandler) remove_Opened(_dispSolutionEvents_OpenedEventHandler)

Inherited from _dispSolutionEvents_Event

remove_ProjectAdded(_dispSolutionEvents_ProjectAddedEventHandler) remove_ProjectAdded(_dispSolutionEvents_ProjectAddedEventHandler) remove_ProjectAdded(_dispSolutionEvents_ProjectAddedEventHandler) remove_ProjectAdded(_dispSolutionEvents_ProjectAddedEventHandler) remove_ProjectAdded(_dispSolutionEvents_ProjectAddedEventHandler) remove_ProjectAdded(_dispSolutionEvents_ProjectAddedEventHandler)

Inherited from _dispSolutionEvents_Event

remove_ProjectRemoved(_dispSolutionEvents_ProjectRemovedEventHandler) remove_ProjectRemoved(_dispSolutionEvents_ProjectRemovedEventHandler) remove_ProjectRemoved(_dispSolutionEvents_ProjectRemovedEventHandler) remove_ProjectRemoved(_dispSolutionEvents_ProjectRemovedEventHandler) remove_ProjectRemoved(_dispSolutionEvents_ProjectRemovedEventHandler) remove_ProjectRemoved(_dispSolutionEvents_ProjectRemovedEventHandler)

Inherited from _dispSolutionEvents_Event

remove_ProjectRenamed(_dispSolutionEvents_ProjectRenamedEventHandler) remove_ProjectRenamed(_dispSolutionEvents_ProjectRenamedEventHandler) remove_ProjectRenamed(_dispSolutionEvents_ProjectRenamedEventHandler) remove_ProjectRenamed(_dispSolutionEvents_ProjectRenamedEventHandler) remove_ProjectRenamed(_dispSolutionEvents_ProjectRenamedEventHandler) remove_ProjectRenamed(_dispSolutionEvents_ProjectRenamedEventHandler)

Inherited from _dispSolutionEvents_Event

remove_QueryCloseSolution(_dispSolutionEvents_QueryCloseSolutionEventHandler) remove_QueryCloseSolution(_dispSolutionEvents_QueryCloseSolutionEventHandler) remove_QueryCloseSolution(_dispSolutionEvents_QueryCloseSolutionEventHandler) remove_QueryCloseSolution(_dispSolutionEvents_QueryCloseSolutionEventHandler) remove_QueryCloseSolution(_dispSolutionEvents_QueryCloseSolutionEventHandler) remove_QueryCloseSolution(_dispSolutionEvents_QueryCloseSolutionEventHandler)

Inherited from _dispSolutionEvents_Event

remove_Renamed(_dispSolutionEvents_RenamedEventHandler) remove_Renamed(_dispSolutionEvents_RenamedEventHandler) remove_Renamed(_dispSolutionEvents_RenamedEventHandler) remove_Renamed(_dispSolutionEvents_RenamedEventHandler) remove_Renamed(_dispSolutionEvents_RenamedEventHandler) remove_Renamed(_dispSolutionEvents_RenamedEventHandler)

Inherited from _dispSolutionEvents_Event

Events

AfterClosing AfterClosing AfterClosing AfterClosing AfterClosing AfterClosing

Microsoft Internal Use Only.

(Inherited from _dispSolutionEvents_Event)

BeforeClosing BeforeClosing BeforeClosing BeforeClosing BeforeClosing BeforeClosing

Microsoft Internal Use Only.

(Inherited from _dispSolutionEvents_Event)

Opened Opened Opened Opened Opened Opened

Microsoft Internal Use Only.

(Inherited from _dispSolutionEvents_Event)

ProjectAdded ProjectAdded ProjectAdded ProjectAdded ProjectAdded ProjectAdded

Microsoft Internal Use Only.

(Inherited from _dispSolutionEvents_Event)

ProjectRemoved ProjectRemoved ProjectRemoved ProjectRemoved ProjectRemoved ProjectRemoved

Microsoft Internal Use Only.

(Inherited from _dispSolutionEvents_Event)

ProjectRenamed ProjectRenamed ProjectRenamed ProjectRenamed ProjectRenamed ProjectRenamed

Microsoft Internal Use Only.

(Inherited from _dispSolutionEvents_Event)

QueryCloseSolution QueryCloseSolution QueryCloseSolution QueryCloseSolution QueryCloseSolution QueryCloseSolution

Microsoft Internal Use Only.

(Inherited from _dispSolutionEvents_Event)

Renamed Renamed Renamed Renamed Renamed Renamed

Microsoft Internal Use Only.

(Inherited from _dispSolutionEvents_Event)

Applies to