NetNamedPipeBinding.MaxBufferPoolSize Propriedade

Definição

Obtém ou define o número máximo de bytes que são usados para armazenar em buffer as mensagens de entrada na memória.Gets or sets the maximum number of bytes that are used to buffer incoming messages in memory.

public:
 property long MaxBufferPoolSize { long get(); void set(long value); };
public long MaxBufferPoolSize { get; set; }
member this.MaxBufferPoolSize : int64 with get, set
Public Property MaxBufferPoolSize As Long

Valor da propriedade

Int64

O número máximo de bytes que são usados para armazenar em buffer as mensagens recebidas na memória.The maximum number of bytes that are used to buffer incoming messages in memory. O valor padrão é 524.288 bytes.The default value is 524,288 bytes.

Exemplos

O exemplo a seguir mostra como obter o MaxBufferPoolSize valor.The following example shows how to get the MaxBufferPoolSize value.

long maxBufferPoolSize = binding.MaxBufferPoolSize;

Comentários

Se você receber mais dados do que você pode armazenar em buffer, os dados que excederem o tamanho do buffer permanecerão no soquete subjacente até que o buffer tenha espaço para o restante dos dados.If you receive more data than you can buffer, the data that exceeds the buffer size remains on the underlying socket until your buffer has room for the rest of the data.

Aplica-se a