共用方式為


IStreamAbortFeature.AbortRead(Int64, ConnectionAbortedException) 方法

定義

中止連接資料流程的讀取端。

public void AbortRead (long errorCode, Microsoft.AspNetCore.Connections.ConnectionAbortedException abortReason);
abstract member AbortRead : int64 * Microsoft.AspNetCore.Connections.ConnectionAbortedException -> unit
Public Sub AbortRead (errorCode As Long, abortReason As ConnectionAbortedException)

參數

errorCode
Int64

要與中止一起傳送的錯誤碼。

abortReason
ConnectionAbortedException

ConnectionAbortedException 描述中止連接資料流程讀取端的原因。

適用於