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
'Usage
Dim instance As DTEEventsClass
Dim handler As _dispDTEEvents_OnBeginShutdownEventHandler
AddHandler instance.OnBeginShutdown, handler
public virtual event _dispDTEEvents_OnBeginShutdownEventHandler OnBeginShutdown
public:
virtual event _dispDTEEvents_OnBeginShutdownEventHandler^ OnBeginShutdown {
void add (_dispDTEEvents_OnBeginShutdownEventHandler^ value);
void remove (_dispDTEEvents_OnBeginShutdownEventHandler^ value);
}
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.