NetNamedPipeBindingElement.MaxBufferPoolSize Propriedade

Definição

Obtém ou define o tamanho máximo, em bytes, do pool de buffer.

public:
 property long MaxBufferPoolSize { long get(); void set(long value); };
[System.Configuration.ConfigurationProperty("maxBufferPoolSize", DefaultValue=524288)]
[System.Configuration.LongValidator(MinValue=0)]
public long MaxBufferPoolSize { get; set; }
[<System.Configuration.ConfigurationProperty("maxBufferPoolSize", DefaultValue=524288)>]
[<System.Configuration.LongValidator(MinValue=0)>]
member this.MaxBufferPoolSize : int64 with get, set
Public Property MaxBufferPoolSize As Long

Valor de Propriedade

O tamanho máximo do buffer pool. O padrão é 524.288 bytes (512 * 1024).

Atributos

Observações

Muitas partes do Windows Communication Foundation (WCF) utilizam buffers. Criar e destruir buffers sempre que são usados é caro, e a recolha de lixo para buffers também é dispendiosa. Com os buffer pools, podes pegar num buffer do pool, usá-lo e devolvê-lo ao pool quando terminares. Assim, evita-se a sobrecarga na criação e destruição de tampões.

Aplica-se a