NetTcpBindingElement.MaxBufferSize 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指定用於儲存訊息的緩衝區最大大小(以位元組為單位)。
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
屬性值
用於儲存訊息的緩衝區最大大小(以位元組為單位)。 預設是 65536。
- 屬性
備註
若緩衝區已滿,多餘資料會留在底層套接字中,直到緩衝區再次有空間。
此值不得小 MaxReceivedMessageSize於 ,其預設值同樣為 65,536(64 KB)。