Share via


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

适用于