NetTcpBinding.MaxReceivedMessageSize 属性

定义

获取或设置绑定可处理的消息最大接收字节大小。Gets or sets the maximum size, in bytes, for a received message that is processed by the binding.

public:
 property long MaxReceivedMessageSize { long get(); void set(long value); };
public long MaxReceivedMessageSize { get; set; }
member this.MaxReceivedMessageSize : int64 with get, set
Public Property MaxReceivedMessageSize As Long

属性值

绑定可处理的最大接收消息大小(以字节为单位)。The maximum size (in bytes) for a received message that is processed by the binding. 默认值为 65,536 字节。The default value is 65,536 bytes.

示例

此示例演示如何获取 MaxReceivedMessageSize 值。This example shows how to get the MaxReceivedMessageSize value.

long MaxReceivedMessageSize = binding.MaxReceivedMessageSize;

适用于