MaxReceivedMessageSize Property
Collapse the table of content
Expand the table of content

TransportBindingElement.MaxReceivedMessageSize Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets and sets the maximum allowable message size that can be received.

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

public virtual long MaxReceivedMessageSize { get; set; }

Property Value

Type: System.Int64
The maximum allowable message size that can be received. The default is 65,536 bytes.

ExceptionCondition
ArgumentOutOfRangeException

The value set cannot be negative.

This property can handle the scenario where a message is sent with a very large or infinite specified length, or where data is sent continuously to a connected Named Pipe.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft