PagesSection.Buffer Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that specifies whether .aspx pages and .ascx controls use response buffering.
public:
property bool Buffer { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("buffer", DefaultValue=true)]
public bool Buffer { get; set; }
[<System.Configuration.ConfigurationProperty("buffer", DefaultValue=true)>]
member this.Buffer : bool with get, set
Public Property Buffer As Boolean
true
if .aspx pages and .ascx controls use response buffering; otherwise, false
. The default is true
.
- Attributes
The following code example shows how to use the Buffer property.
// Get the current Buffer property value.
Console.WriteLine(
"Current Buffer value: '{0}'", pagesSection.Buffer);
// Set the Buffer property to true.
pagesSection.Buffer = true;
' Get the current Buffer property value.
Console.WriteLine( _
"Current Buffer value: '{0}'", pagesSection.Buffer)
' Set the Buffer property to true.
pagesSection.Buffer = True
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.
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 |
Feedback om .NET
.NET är ett öppen källkod projekt. Välj en länk för att ge feedback: