共用方式為


IWebTransportSession.Abort(Int32) 方法

定義

突然關閉 WebTransport 會話並停止所有資料流程。

public void Abort (int errorCode);
abstract member Abort : int -> unit
Public Sub Abort (errorCode As Integer)

參數

errorCode
Int32

對應至造成中止原因的 HTTP 錯誤碼。

備註

錯誤碼如下所述: https://www.rfc-editor.org/rfc/rfc9114.html#name-http-3-error-codes

適用於