Export (0) Print
Expand All

WebEventProvider.Shutdown Method

Performs tasks associated with shutting down the provider.

Namespace:  System.Web.Management
Assembly:  System.Web (in System.Web.dll)

public abstract void Shutdown()

ASP.NET calls the Shutdown method when the application domain hosting the Web application terminates. The method is called to perform tasks that will allow the application to end gracefully, such as closing resources.

The following code example shows how to use the Shutdown method.


// Shutdown the provider. 
public override void Shutdown()
{
    Flush();
}

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft