Share via


NetTcpBinding.MaxBufferPoolSize 屬性

定義

取得或設定儲存繫結所處理之 TCP 訊息的可用緩衝集區大小上限 (以位元組為單位)。

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

屬性值

Int64

儲存繫結所處理之 TCP 訊息的可用緩衝集區大小上限。 預設值為 524,288 個位元組。

範例

這個範例會示範如何取得 MaxBufferPoolSize 值。

long maxBufferPoolsize = binding.MaxBufferPoolSize;

備註

如果您接收超出可以緩衝的資料,則超出緩衝大小的資料會保留在基礎通訊端中,直到緩衝區再度有空間可存放其他資料為止。

適用於