Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.