Compartir a través de


DTEEventsClass.OnBeginShutdown Event

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Occurs when the development environment is closing.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Public Overridable Event OnBeginShutdown As _dispDTEEvents_OnBeginShutdownEventHandler
public virtual event _dispDTEEvents_OnBeginShutdownEventHandler OnBeginShutdown
public:
virtual   event _dispDTEEvents_OnBeginShutdownEventHandler^ OnBeginShutdown {
    void add (_dispDTEEvents_OnBeginShutdownEventHandler^ value);
    void remove (_dispDTEEvents_OnBeginShutdownEventHandler^ value);
}
abstract OnBeginShutdown : IEvent<_dispDTEEvents_OnBeginShutdownEventHandler,
    EventArgs>
override OnBeginShutdown : IEvent<_dispDTEEvents_OnBeginShutdownEventHandler,
    EventArgs>
JScript does not support events.

Implements

_dispDTEEvents_Event.OnBeginShutdown

Remarks

All Add-ins must implement this method. This event is good to use with macros. Add-ins can use either this event or the OnBeginShutdown.

Examples

Public Sub DTEEvents_OnBeginShutdown() Handles DTEEvents.OnBeginShutdown
    MsgBox("Visual Studio is being shut down.")
End Sub

.NET Framework Security

See Also

Reference

DTEEventsClass Class

EnvDTE Namespace