[Supported in the .NET Framework 4.5.1 and later versions]
Listens for suspend and resume notifications.
Assembly: System.Web (in System.Web.dll)
Available since 4.5.1
Instance members of this type are not guaranteed to be thread safe. You can call the Suspend method at any time, including during a call to another method on this same object, during calls to other objects' Suspend methods, or even during a call to this object's Suspend method. Because the execution of these methods is multithreaded, there is an interval in which the Suspend method can be called even after a call to the UnregisterObject method has completed.
If an application passes to the RegisterObject method an object that implements the interface, the hosting environment will subscribe the object to listen for suspend or resume notifications.