PagesSection.Buffer Propriedade

Definição

Recebe ou define um valor que especifica se as páginas .aspx e os controlos .ascx usam buffering de resposta.

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

Valor de Propriedade

true se .aspx páginas e controlos .ascx utilizarem buffering de resposta; caso contrário, false. A predefinição é true.

Atributos

Exemplos

O seguinte exemplo de código mostra como usar a Buffer propriedade.

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

Observações

Quando o buffering de resposta é ativado, a saída da página ou do controlo é armazenada até que toda a página ou controlo seja processada. Não defina Buffer se true o desempenho é uma consideração chave.

Aplica-se a