NetMsmqBinding.ReaderQuotas Właściwość

Definicja

Pobiera lub ustawia XmlDictionaryReaderQuotas element skojarzony z tym powiązaniem.

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

Wartość właściwości

XmlDictionaryReaderQuotas

Element XmlDictionaryReaderQuotas skojarzony z tym powiązaniem.

Wyjątki

Wartość to null.

Przykłady

Poniższy kod pokazuje, jak ustawić XmlDictionaryReaderQuotas właściwość .

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

Uwagi

Obiekt XmlDictionaryReaderQuotas definiuje ograniczenia dotyczące złożoności komunikatów protokołu SOAP, które mogą być przetwarzane przez punkty końcowe skonfigurowane za pomocą powiązania. Te ograniczenia obejmują maxArrayLength, , maxBytesPerRead``maxDepth, maxNameTableCharCounti maxStringContentLength. Te wartości pomagają w zapobieganiu atakom typu "odmowa usługi". Aby uzyskać więcej informacji, zobacz XmlDictionaryReaderQuotas.

Dotyczy