Share via


WebHttpBindingElement.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

属性

例外

该值设置为 null

设置的配额必须为正数。

注解

这些复杂性约束可以抵御某种类型的拒绝服务 (DOS) 攻击,这些攻击试图利用消息复杂性来占用终结点处理资源。 表示这些约束的属性及其默认值(以字节表示)如下所示:

适用于