NetTcpBinding::ReaderQuotas Property
Gets or sets constraints on the complexity of SOAP messages that can be processed by endpoints configured with this binding.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: property XmlDictionaryReaderQuotas^ ReaderQuotas { XmlDictionaryReaderQuotas^ get(); void set(XmlDictionaryReaderQuotas^ value); }
Property Value
Type: System.Xml::XmlDictionaryReaderQuotas^The XmlDictionaryReaderQuotas that specifies the complexity constraints on soap messages exchanged. The default values for these constraints are provided in the following Remarks section.
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 are as follows:
MaxDepth = 32
MaxStringContentLength = 8192
MaxArrayLength = 16384
MaxBytesPerRead = 4096
MaxNameTableCharCount = 16384
The following example shows how to get the ReaderQuotas object.
XmlDictionaryReaderQuotas xmlDictionaryReaderQuotas = binding.ReaderQuotas;
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms