Page.Buffer 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定數值,指出是否緩衝頁面輸出。
protected:
property bool Buffer { void set(bool value); };
public:
property bool Buffer { bool get(); void set(bool value); };
C#
protected bool Buffer { set; }
C#
[System.ComponentModel.Browsable(false)]
public bool Buffer { get; set; }
member this.Buffer : bool
[<System.ComponentModel.Browsable(false)>]
member this.Buffer : bool with get, set
Protected Property Buffer As Boolean
Public Property Buffer As Boolean
如果緩衝頁面輸出,則為 true
,否則為 false
。 預設為 true
。
- 屬性
在大部分情況下,請勿在程式代碼中設定此屬性。 將 Buffer 屬性設定為 true
在 .aspx 檔案中使用 @ Page 指示詞。 要求頁面時,動態產生的類別會設定 屬性。
備註
屬性 Buffer 會設定並取得 BufferOutput 屬性。
產品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |