Page.Buffer Page.Buffer Page.Buffer Page.Buffer Property

定義

設定數值,指出是否緩衝頁面輸出。Sets a value indicating whether the page output is buffered.

public:
 property bool Buffer { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(false)]
public bool Buffer { get; set; }
member this.Buffer : bool with get, set
Public Property Buffer As Boolean

屬性值

如果緩衝頁面輸出,則為 true,否則為 falsetrue if page output is buffered; otherwise, false. 預設為 trueThe default is true.

備註

在大部分的情況下,請勿在程式碼中設定此屬性。In most circumstances, do not set this property in code. 使用 .aspx 檔案中true@ Page指示詞,將屬性設定為。BufferSet the Buffer attribute to true using the @ Page directive in the .aspx file. 當要求頁面時,動態產生的類別會設定屬性。When the page is requested, the dynamically generated class sets the property.

注意

屬性會設定並BufferOutput取得屬性。 BufferThe Buffer property sets and gets the BufferOutput property.

適用於