NetPeerTcpBindingElement.MaxReceivedMessageSize Property

 

Gets and sets the maximum size, in bytes, for messages received by peer TCP bindings configured with this element.

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

[ConfigurationPropertyAttribute("maxReceivedMessageSize", DefaultValue = 65536)]
[LongValidatorAttribute(MinValue = 16384)]
public long MaxReceivedMessageSize { get; set; }

Property Value

Type: System.Int64

Int32 that specifies the maximum size for messages received by peer TCP bindings configured with this element.

The default maximum message size if 65,536 bytes.

.NET Framework
Available since 3.0
Return to top
Show: