ConnectionOrientedTransportElement.MaxBufferSize Propriedade

Definição

Obtém ou define o tamanho máximo do buffer a ser usado.Gets or sets the maximum size of the buffer to use.

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

Valor da propriedade

Int32

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 é 65.536 bytes.The default value is 65,536 bytes.

Atributos

Comentários

Essa propriedade só se aplica aos cabeçalhos de mensagens transmitidas.This property only applies to the headers of streamed messages.

Esse valor deve ser pelo menos o tamanho máximo possível dos cabeçalhos SOAP, que são lidos no modo de buffer.This value should be at least the maximum possible size of the SOAP headers, which are read in buffered mode.

O valor dessa propriedade deve ser menor ou igual a MaxMessageSize e deve ser maior que o tamanho dos cabeçalhos da mensagem.The value of this property must be less than or equal to MaxMessageSize and must be larger than the size of the headers of the message. Caso contrário, o canal gera uma exceção.Otherwise, the channel throws an exception.

Se você receber mais dados do que você pode armazenar em buffer, o canal lançará um CommunicationException , que contém uma QuotaExceededException exceção interna.If you receive more data than you can buffer, the channel throws a CommunicationException, which contains QuotaExceededException as an inner exception.

Aplica-se a