IStopListeningRegisteredObject.StopListening Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Stops listening for new requests.
public:
void StopListening();
public void StopListening ();
abstract member StopListening : unit -> unit
Public Sub StopListening ()
Remarks
The StopListening method is supported only when running in IIS integrated mode. The ASP.NET runtime does not guarantee that the StopListening method will ever fire.
The StopListening method must not throw exceptions, otherwise the behavior is undefined and the process will likely be terminated. Further, to avoid creating deadlocks, the StopListening method should not block execution.
Important
In many applications the StopListening method can run at the same time as the Unload method. If AppDomain unload occurs, the StopListening method might be forcibly aborted before it finishes executing.
Applies to
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour