IStopListeningRegisteredObject.StopListening 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
停止聆聽新的請求。
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 方法可能會在執行完成前被強制中止。