WebMessageEncodingElement.ReaderQuotas 属性

定义

获取或设置 SOAP 消息的复杂性约束,这些消息可由配置有此绑定的终结点处理。

public:
 property System::ServiceModel::Configuration::XmlDictionaryReaderQuotasElement ^ ReaderQuotas { System::ServiceModel::Configuration::XmlDictionaryReaderQuotasElement ^ get(); };
[System.Configuration.ConfigurationProperty("readerQuotas")]
public System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement ReaderQuotas { get; }
[<System.Configuration.ConfigurationProperty("readerQuotas")>]
member this.ReaderQuotas : System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement
Public ReadOnly Property ReaderQuotas As XmlDictionaryReaderQuotasElement

属性值

指定 XmlDictionaryReaderQuotasElement 复杂性约束的元素。

属性

示例

XmlDictionaryReaderQuotasElement webMessageReaderQuotasElement = webMEE.ReaderQuotas;  
Console.WriteLine("The max depth of the reader Quotas is: {0}", webMessageReaderQuotasElement.MaxDepth);  

注解

复杂性约束包括项目,如最大元素深度,或消息中字符串内容的最大长度。 这些约束可防止尝试使用消息复杂性来绑定终结点处理资源的拒绝服务(DOS)攻击。

适用于