Düzenle

Aracılığıyla paylaş


NetTcpBindingElement.MaxBufferSize Property

Definition

Gets or sets a value that specifies the maximum size, in bytes, of the buffer used to store messages in memory.

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

Property Value

The maximum size, in bytes, of the buffer used to store messages in memory. The default is 65536.

Attributes

Remarks

If the buffer is full, excess data remains in the underlying socket until the buffer has space again.

This value cannot be less than MaxReceivedMessageSize, whose default value is also 65,536 (64 KB).

Applies to