IApplicationLifecycle.Stopping Event

Occurs when the application is suspending or closing.

Namespace: Microsoft.ApplicationInsights.Extensibility
Assembly: Microsoft.ApplicationInsights (in Microsoft.ApplicationInsights.dll)

Usage

'Usage
Dim instance As IApplicationLifecycle
Dim handler As EventHandler(Of ApplicationStoppingEventArgs)

AddHandler instance.Stopping, handler

Syntax

'Declaration
Event Stopping As EventHandler(Of ApplicationStoppingEventArgs)
event EventHandler<ApplicationStoppingEventArgs> Stopping
event EventHandler<ApplicationStoppingEventArgs^>^ Stopping {
    void add (EventHandler<ApplicationStoppingEventArgs^>^ value);
    void remove (EventHandler<ApplicationStoppingEventArgs^>^ value);
}
/** @event */
void add_Stopping (EventHandler<ApplicationStoppingEventArgs> value)

/** @event */
void remove_Stopping (EventHandler<ApplicationStoppingEventArgs> value)

Platforms

Development Platforms

Windows 8, Windows Server 2012

See Also

Reference

IApplicationLifecycle Interface
IApplicationLifecycle Members
Microsoft.ApplicationInsights.Extensibility Namespace