PagesSection.Buffer Property

Definition

Gets or sets a value that specifies whether .aspx pages and .ascx controls use response buffering.

C#
[System.Configuration.ConfigurationProperty("buffer", DefaultValue=true)]
public bool Buffer { get; set; }

Property Value

true if .aspx pages and .ascx controls use response buffering; otherwise, false. The default is true.

Attributes

Examples

The following code example shows how to use the Buffer property.

C#
// Get the current Buffer property value.
Console.WriteLine(
    "Current Buffer value: '{0}'", pagesSection.Buffer);

// Set the Buffer property to true.
pagesSection.Buffer = true;

Remarks

When response buffering is turned on, the page or control output is buffered until after the entire page or control is processed. Do not set Buffer to true if performance is a key consideration.

Applies to

Produkt Versioner
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1