편집

다음을 통해 공유


NetMsmqBinding.ReaderQuotas Property

Definition

Gets or sets the XmlDictionaryReaderQuotas that is associated with this binding.

public:
 property System::Xml::XmlDictionaryReaderQuotas ^ ReaderQuotas { System::Xml::XmlDictionaryReaderQuotas ^ get(); void set(System::Xml::XmlDictionaryReaderQuotas ^ value); };
public System.Xml.XmlDictionaryReaderQuotas ReaderQuotas { get; set; }
member this.ReaderQuotas : System.Xml.XmlDictionaryReaderQuotas with get, set
Public Property ReaderQuotas As XmlDictionaryReaderQuotas

Property Value

The XmlDictionaryReaderQuotas associated with this binding.

Exceptions

The value is null.

Examples

The following code shows how to set the XmlDictionaryReaderQuotas property.

NetMsmqBinding binding = new NetMsmqBinding();
XmlDictionaryReaderQuotas readerQuotas = new XmlDictionaryReaderQuotas();
readerQuotas.MaxArrayLength = 25 * 1024;
binding.ReaderQuotas = readerQuotas;

Remarks

The XmlDictionaryReaderQuotas object defines constraints on the complexity of SOAP messages that can be processed by endpoints configured with a binding. These constraints include maxArrayLength, maxBytesPerRead, maxDepth, maxNameTableCharCount, and maxStringContentLength. These values aid in the prevention of denial of service attacks. For more information, see XmlDictionaryReaderQuotas.

Applies to