HttpServerChannel.StopListening(Object) 方法

定義

指示目前通道停止接聽要求。

public:
 virtual void StopListening(System::Object ^ data);
public void StopListening (object data);
abstract member StopListening : obj -> unit
override this.StopListening : obj -> unit
Public Sub StopListening (data As Object)

參數

data
Object

HttpChannel 而言應該永遠為 null

實作

備註

使用這個方法來停止接聽通道。 若要重新啟動接聽,請使用 StartListening 方法。

如果您的通道使用動態指派的埠號碼,當您重新啟動接聽時,您的埠號碼可能會變更。

適用於