語言

IStopListeningRegisteredObject.StopListening 方法

定義

停止聆聽新的請求。

public:
 void StopListening();
public void StopListening();
abstract member StopListening : unit -> unit
Public Sub StopListening ()

備註

StopListening 方法僅在 IIS 整合模式下支援。 ASP.NET 執行時並不保證 StopListening 方法會自動觸發。

StopListening方法不得拋出例外,否則行為未定義,程序很可能會被終止。 此外,為避免造成死結,該 StopListening 方法不應阻擋執行。

Important

在許多應用中,該 StopListening 方法可與該 Unload 方法同時執行。 若 AppDomain 發生卸載, StopListening 方法可能會在執行完成前被強制中止。

適用於