Aracılığıyla paylaş


HttpResponse.BufferOutput Özellik

Tanım

Çıktının arabelleğe alınıp alınmayacağını ve sayfanın tamamı işlendikten sonra gönderilip gönderilmeymeyeceğini belirten bir değer alır veya ayarlar.

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

Özellik Değeri

Boolean

true istemci çıkışı arabelleğe alındıysa; aksi takdirde false. Varsayılan değer: true.

Örnekler

Aşağıdaki örnek, image/jpeg yanıtının özelliğini ayarlar ContentType , yanıta eklenmiş olabilecek diğer içeriği kaldırmak için yöntemini çağırır Clear ve ardından istekte bulunan istemciye herhangi bir içerik gönderilmeden önce sayfanın tamamının işlenmesi için özelliğini true olarak ayarlar BufferOutput .

Tam bir örnek için sınıfına HttpResponse bakın.

    // 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

Şunlara uygulanır