WebEventProvider.Shutdown Method ()

 

Performs tasks associated with shutting down the provider.

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

Public MustOverride Sub 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 Overrides Sub Shutdown() 
    Flush()

End Sub 'Shutdown

.NET Framework
Available since 2.0
Return to top
Show: