WebHttpBindingElement.ReaderQuotas 属性
定义
获取或设置包含 SOAP 消息的复杂性约束的配置元素,这些消息可由使用此绑定配置的终结点进行处理。Gets or sets the configuration element that contains the constraints on the complexity of SOAP messages that can be processed by endpoints configured with this binding.
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。The XmlDictionaryReaderQuotasElement that specifies the complexity constraints.
- 属性
例外
该值设置为 null。The value set is null.
XmlDictionaryReaderQuotas 的配额值为只读。The quota values of XmlDictionaryReaderQuotas are read only.
设置的配额必须为正数。The quotas set must be positive.
注解
这些复杂性约束可以抵御某种类型的拒绝服务 (DOS) 攻击,这些攻击试图利用消息复杂性来占用终结点处理资源。The complexity constraints protect against a class of denial of service (DOS) attacks that attempt to use message complexity to tie up endpoint processing resources. 表示这些约束的属性及其默认值(以字节表示)如下所示:The properties that express these constraints and their default values (in bytes) are as follows:
MaxStringContentLength = 8192MaxStringContentLength = 8192
MaxArrayLength = 16384MaxArrayLength = 16384
MaxBytesPerRead = 4096MaxBytesPerRead = 4096
MaxNameTableCharCount = 16384MaxNameTableCharCount = 16384