ApplicationLifecycle.OnStopping Method

Raises the Stopping event.

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

Usage

'Usage
Dim sender As Object
Dim eventArgs As ApplicationStoppingEventArgs

Me.OnStopping(sender, eventArgs)

Syntax

'Declaration
Protected Sub OnStopping ( _
    sender As Object, _
    eventArgs As ApplicationStoppingEventArgs _
)
protected void OnStopping (
    Object sender,
    ApplicationStoppingEventArgs eventArgs
)
protected:
void OnStopping (
    Object^ sender, 
    ApplicationStoppingEventArgs^ eventArgs
)
protected void OnStopping (
    Object sender, 
    ApplicationStoppingEventArgs eventArgs
)
protected function OnStopping (
    sender : Object, 
    eventArgs : ApplicationStoppingEventArgs
)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 8, Windows Server 2012

See Also

Reference

ApplicationLifecycle Class
ApplicationLifecycle Members
Microsoft.ApplicationInsights.Extensibility Namespace