SocketsHttpHandler.MaxResponseDrainSize 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定可從回應中提取的最大資料量(以位元組為單位)。
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
屬性值
以位元組為單位,從回應中可提取的最大資料量。
例外狀況
指定的值為負值。
目前的實例已經開始了操作。
目前的實例已被處理。
備註
當請求被取消或回應在尚未完整閱讀內容前就被處理時,就會發生抽空。 若耗盡的位元組數超過此數,連線將被關閉而非重複使用。