PagesSection.Buffer プロパティ

定義

ページと .ascx コントロールが応答バッファリングを使用するかどうかを指定する値.aspx取得または設定します。

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 ページと .ascx コントロール.aspx応答バッファリングを使用する場合。それ以外の場合は false。 既定値は、true です。

属性

次のコード例は、 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

注釈

応答バッファリングが有効になっている場合、ページまたはコントロールの出力は、ページまたはコントロール全体が処理されるまでバッファーされます。 パフォーマンスが重要な考慮事項である場合は、 Buffertrue に設定しないでください。

適用対象