共用方式為


NetPeerTcpBindingElement.MaxReceivedMessageSize 屬性

定義

取得或設定以此項目設定對等 TCP 繫結所接收的訊息大小上限 (以位元組為單位)。

public:
 property long MaxReceivedMessageSize { long get(); void set(long value); };
[System.Configuration.ConfigurationProperty("maxReceivedMessageSize", DefaultValue=65536)]
[System.Configuration.LongValidator(MinValue=16384)]
public long MaxReceivedMessageSize { get; set; }
[<System.Configuration.ConfigurationProperty("maxReceivedMessageSize", DefaultValue=65536)>]
[<System.Configuration.LongValidator(MinValue=16384)>]
member this.MaxReceivedMessageSize : int64 with get, set
Public Property MaxReceivedMessageSize As Long

屬性值

Int64

Int32,指定以這個項目設定之對等 TCP 繫結所接收的訊息大小上限。

屬性

備註

預設的訊息大小上限為 65,536 個位元組。

適用於