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

属性值

一个 Int32,指定配置了此元素的对等 TCP 绑定所接收的消息的最大大小。

属性

注解

默认的最大消息大小为 65,536 字节。

适用于