Dela via


IStreamAbortFeature.AbortRead(Int64, ConnectionAbortedException) Method

Definition

Abort the read side of the connection stream.

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)

Parameters

errorCode
Int64

The error code to send with the abort.

abortReason
ConnectionAbortedException

A ConnectionAbortedException describing the reason to abort the read side of the connection stream.

Applies to