MsmqBindingElementBase.MaxReceivedMessageSize Property

 

Gets or sets a value that indicates the maximum size, in bytes, allowed for a message.

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

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

Property Value

Type: System.Int64

The maximum allowed size for a message that is sent or received with this binding.

If an incoming message is larger than MaxReceivedMessageSize, the message is dropped.

.NET Framework
Available since 3.0
Return to top
Show: