PagesSection.Buffer Egenskap

Definition

Hämtar eller anger ett värde som anger om .aspx sidor och .ascx-kontroller använder svarsbuffertning.

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

Egenskapsvärde

trueom .aspx sidor och .ascx-kontroller använder svarsbuffertning; annars . false Standardvärdet är true.

Attribut

Exempel

Följande kodexempel visar hur du använder egenskapen Buffer .

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

Kommentarer

När svarsbuffertning är aktiverat buffrar sidan eller kontrollens utdata tills hela sidan eller kontrollen har bearbetats. Ange inte Buffer om true prestanda är en viktig faktor.

Gäller för