Share via


NetTcpBindingElement.MaxBufferSize Propriedade

Definição

Obtém ou define um valor que especifica o tamanho máximo, em bytes, do buffer usado para armazenar mensagens na memória.

public:
 property int MaxBufferSize { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxBufferSize", DefaultValue=65536)]
[System.Configuration.IntegerValidator(MinValue=1)]
public int MaxBufferSize { get; set; }
[<System.Configuration.ConfigurationProperty("maxBufferSize", DefaultValue=65536)>]
[<System.Configuration.IntegerValidator(MinValue=1)>]
member this.MaxBufferSize : int with get, set
Public Property MaxBufferSize As Integer

Valor da propriedade

Int32

O tamanho máximo, em bytes, do buffer usado para armazenar mensagens na memória. O padrão é 65536.

Atributos

Comentários

Se o buffer estiver cheio, os dados em excesso permanecerão no soquete subjacente até que o buffer tenha espaço novamente.

Esse valor não pode ser menor que MaxReceivedMessageSize , cujo valor padrão também é 65.536 (64 KB).

Aplica-se a