NetTcpBindingElement.MaxBufferSize 屬性

定義

取得或設定值,這個值會指定記憶體中用來儲存訊息的緩衝區大小上限 (以位元組為單位)。

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

屬性值

Int32

記憶體中用於儲存訊息的緩衝區大小上限 (以位元組為單位)。 預設值為 65536。

屬性

備註

如果緩衝區已滿,超過的資料會保留在基礎通訊端中,直到緩衝區再度有空間為止。

這個值不得小於 MaxReceivedMessageSize,後者的預設值也是 65,536 (64 KB)。

適用於