Share via


NetMsmqBinding.ReaderQuotas Proprietà

Definizione

Consente di ottenere o impostare l'oggetto XmlDictionaryReaderQuotas relativo a questa associazione.

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

Valore della proprietà

XmlDictionaryReaderQuotas

XmlDictionaryReaderQuotas relativo a questa associazione.

Eccezioni

Il valore è null.

Esempio

Il seguente codice mostra come impostare la proprietà XmlDictionaryReaderQuotas.

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

Commenti

L'oggetto XmlDictionaryReaderQuotas definisce i vincoli sulla complessità dei messaggi SOAP che possono essere elaborati dagli endpoint configurati con un'associazione. Questi vincoli sono: maxArrayLength, maxBytesPerRead, maxDepth, maxNameTableCharCount e maxStringContentLength. Questi valori aiutano a prevenire gli attacchi di tipo Denial of Service. Per altre informazioni, vedere XmlDictionaryReaderQuotas.

Si applica a