NetNamedPipeBinding.MaxReceivedMessageSize 属性

定义

获取或设置绑定可处理的消息最大接收字节大小。

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

属性值

绑定可处理的最大接收消息大小(以字节为单位)。 默认值为 65,536 字节。

示例

下面的示例演示如何获取 MaxReceivedMessageSize 值。

long maxReceivedMessageSize =
    binding.MaxReceivedMessageSize;

适用于