TransportBindingElement.MaxReceivedMessageSize 属性
定义
获取或设置能接收的最大可允许消息大小(以字节为单位)。Gets or sets the maximum allowable message size, in bytes, that can be received.
public:
virtual property long MaxReceivedMessageSize { long get(); void set(long value); };
public virtual long MaxReceivedMessageSize { get; set; }
member this.MaxReceivedMessageSize : int64 with get, set
Public Overridable Property MaxReceivedMessageSize As Long
属性值
允许接收的最大消息大小。The maximum allowable message size that can be received. 默认值为 65,536 字节。The default is 65,536 bytes.
注解
此属性可以防范两种易受黑客攻击的情况:以极大或无限指定长度发送消息;或将数据持续发送到连接的命名管道。This property can counter a hacker scenario where a message is sent with a very large or infinite specified length, or where data is sent continuously to a connected Named Pipe.