HttpClient.MaxResponseContentBufferSize 속성

정의

응답 콘텐츠를 읽을 경우 버퍼링할 최대 바이트 수를 가져오거나 설정합니다.

public:
 property long MaxResponseContentBufferSize { long get(); void set(long value); };
public long MaxResponseContentBufferSize { get; set; }
member this.MaxResponseContentBufferSize : int64 with get, set
Public Property MaxResponseContentBufferSize As Long

속성 값

응답 콘텐츠를 읽을 경우 버퍼링할 최대 바이트 수입니다. 이 속성의 기본값은 2GB입니다.

예외

지정된 크기가 0보다 작거나 같은 경우

작업이 이미 현재 인스턴스에서 시작된 경우

현재 인스턴스가 삭제된 경우

설명

앱은 MaxResponseContentBufferSize 속성을 더 낮은 값으로 설정하여 응답을 읽을 때 응답 크기를 버퍼로 제한할 수 있습니다. 응답 콘텐츠의 크기가 속성보다 MaxResponseContentBufferSize 크면 예외가 throw됩니다.

적용 대상