HttpResponse.BufferOutput 속성

정의

출력의 버퍼링 여부 및 전체 페이지의 처리가 완료된 다음에 출력을 보내는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool BufferOutput { bool get(); void set(bool value); };
public bool BufferOutput { get; set; }
member this.BufferOutput : bool with get, set
Public Property BufferOutput As Boolean

속성 값

Boolean

클라이언트에 대한 출력이 버퍼링되면 true이고, 그렇지 않으면 false입니다. 기본값은 true입니다.

예제

다음 예제에서는 이미지/jpeg에 대 한 응답에 대 한 속성을 설정 ContentType 하 고 응답에 연결 될 수 있는 다른 콘텐츠를 제거 하는 메서드를 호출 Clear 하 고 모든 콘텐츠를 요청 하는 클라이언트에 전송 되기 전에 전체 페이지를 처리 되도록 속성을 true로 설정 BufferOutput 합니다.

전체 예제는 클래스를 참조하세요 HttpResponse .

    // Set the page's content type to JPEG files
    // and clears all content output from the buffer stream.
    Response.ContentType = "image/jpeg";
    Response.Clear();

    // Buffer response so that page is sent
    // after processing is complete.
    Response.BufferOutput = true;
' Set the page's content type to JPEG files
' and clears all content output from the buffer stream.
Response.ContentType = "image/jpeg"
Response.Clear()

' Buffer response so that page is sent
' after processing is complete.
Response.BufferOutput = True

적용 대상