WSHttpBindingBase.ReaderQuotas 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 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 readerQuotas =
binding1.ReaderQuotas;
Dim readerQuotas As XmlDictionaryReaderQuotas = binding1.ReaderQuotas
備註
複雜度限制包括最大元素深度、訊息中字串內容的最大長度等項目。 這些限制措施可防止一類試圖利用訊息複雜度來佔用終端處理資源的阻斷服務(DoS)攻擊。