NetNamedPipeBinding.MaxBufferPoolSize 屬性

定義

取得或設定記憶體中用於緩衝傳入訊息的位元組數目上限。

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

屬性值

記憶體中用於緩衝傳入訊息的位元組數目上限。 預設值為 524,288 個位元組。

範例

下列範例會示範如何取得 MaxBufferPoolSize 值。

long maxBufferPoolSize = binding.MaxBufferPoolSize;

備註

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

適用於