Edit

Share via


NetNamedPipeBinding.MaxReceivedMessageSize Property

Definition

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

Property Value

The maximum size (in bytes) for a received message that is processed by the binding. The default value is 65,536 bytes.

Examples

The following example shows how to get the MaxReceivedMessageSize value.

long maxReceivedMessageSize =
    binding.MaxReceivedMessageSize;

Applies to