ISuspendibleRegisteredObject.Suspend Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

[Supported in the .NET Framework 4.5.1 and later versions]

Called when ASP.NET notifies an application that a process is being suspended.

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

Function Suspend As Action

Return Value

Type: System.Action

The Suspend method must not throw exceptions, otherwise the behavior is undefined and the process will likely be terminated. The Suspend method should not block execution, because after five seconds ASP.NET will allow the process to be suspended, even if not all Suspend methods have completed.

If a callback returns, it will be invoked when the process resumes from suspension. The Suspend method may return null if it does not have to be notified when the process resumes.

The Suspend method is supported only when running in IIS integrated mode. The ASP.NET runtime does not guarantee that the Suspend method will ever fire.

.NET Framework
Available since 4.5.1
Return to top