Bearbeiten

Freigeben über


NetTcpBinding.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

This example shows how to get the MaxReceivedMessageSize value.

long MaxReceivedMessageSize = binding.MaxReceivedMessageSize;

Applies to