WebMessageEncodingBindingElement::ReaderQuotas Property
Gets constraints on the complexity of SOAP messages that can be processed by endpoints configured with this binding.
Assembly: System.ServiceModel.Web (in System.ServiceModel.Web.dll)
public: property XmlDictionaryReaderQuotas^ ReaderQuotas { XmlDictionaryReaderQuotas^ get(); }
Property Value
Type: System.Xml::XmlDictionaryReaderQuotas^The XmlDictionaryReaderQuotas that specifies the complexity constraints on SOAP messages that are exchanged. The default values for these constraints are provided in the following Remarks section.
| Exception | Condition |
|---|---|
| ArgumentNullException | The value set is null. |
The complexity constraints protect against a class of denial of service (DOS) attacks that attempt to use message complexity to tie up endpoint processing resources. The properties that express these constraints and their default values (in bytes) are as follows:
MaxDepth = 32
MaxStringContentLength = 8192
MaxArrayLength = 16384
MaxBytesPerRead = 4096
MaxNameTableCharCount = 16384
Available since 3.5