Share via


WSHttpBindingBase.ReaderQuotas 속성

정의

이 바인딩으로 구성된 엔드포인트에서 처리할 수 있는 SOAP 메시지의 복잡성에 대한 제약 조건을 가져오거나 설정합니다.

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

속성 값

XmlDictionaryReaderQuotas

복잡성 제약 조건을 지정하는 XmlDictionaryReaderQuotas입니다.

예제

이 예제에서는 메시지의 최대 크기를 가져오는 방법을 보여 줍니다.

XmlDictionaryReaderQuotas readerQuotas =
binding1.ReaderQuotas;
Dim readerQuotas As XmlDictionaryReaderQuotas = binding1.ReaderQuotas

설명

복잡성 제약 조건에는 최대 요소 깊이, 메시지 내 문자열 내용의 최대 길이 등이 포함됩니다. 제약 조건을 사용하면 메시지 복잡성을 이용하여 리소스를 처리하는 엔드포인트에서 정체를 일으키려고 하는 DoS(서비스 거부) 공격을 방지할 수 있습니다.

적용 대상