Aracılığıyla paylaş


PagesSection.Buffer Özellik

Tanım

.aspx sayfaların ve .ascx denetimlerinin yanıt arabelleği kullanıp kullanmadığını belirten bir değer alır veya ayarlar.

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

Özellik Değeri

true sayfaları ve .ascx denetimleri .aspx yanıt arabelleği kullanın; aksi takdirde , false. Varsayılan değer: true.

Öznitelikler

Örnekler

Aşağıdaki kod örneği özelliğinin Buffer nasıl kullanılacağını gösterir.

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

Açıklamalar

Yanıt arabelleğe alma açık olduğunda, sayfanın veya denetimin tamamı işlenene kadar sayfa veya denetim çıktısı arabelleğe alınmaktadır. Performans önemli bir noktaysa olarak ayarlamayın Buffertrue .

Şunlara uygulanır