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. 設定Buffer屬性設定為true使用@ Page .aspx 檔案中的指示詞。Set 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.

注意

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

適用於