Gets and sets the maximum allowable message size, in bytes, that can be received.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
This property can counter a hacker 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.
Available since 4.5
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0