SocketsHttpHandler.MaxResponseDrainSize SocketsHttpHandler.MaxResponseDrainSize SocketsHttpHandler.MaxResponseDrainSize SocketsHttpHandler.MaxResponseDrainSize Property

定義

取得或設定可從回應中清空的資料的數量上限 (以位元組為單位)。Gets or sets the maximum amount of data that can be drained from responses in bytes.

public:
 property int MaxResponseDrainSize { int get(); void set(int value); };
public int MaxResponseDrainSize { get; set; }
member this.MaxResponseDrainSize : int with get, set
Public Property MaxResponseDrainSize As Integer

屬性值

可以從回應中清空的最大資料量 (以位元組為單位)。The maximum amount of data that can be drained from responses in bytes.

備註

清空會在要求取消或在完全讀取內容之前處置回應時發生。Draining occurs when a request is cancelled or a response is disposed prior to fully reading the content. 如果已耗盡的位元組數目超過此數量, 連線將會關閉, 而不會重複使用。If the number of bytes drained exceeds this amount, the connection will be closed rather than reused.

適用於