TextMessageEncodingElement.ReaderQuotas 属性

定义

获取或设置可由配置了此绑定的终结点处理的 SOAP 消息的复杂性约束。Gets or sets 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

指定复杂性约束的 XmlDictionaryReaderQuotasThe XmlDictionaryReaderQuotas that specifies the complexity constraints.

属性

注解

复杂性约束包括多个项,例如最大元素深度、消息中字符串内容的最大长度。The complexity constraints include items like a maximum element depth, or a maximum length for string content within the message. 这些约束可以抵御某种类型的拒绝服务 (DOS) 攻击,这些攻击试图利用消息复杂性来占用终结点处理资源。The constraints protect against a type of denial of service (DOS) attacks that attempt to use message complexity to tie up endpoint processing resources.

适用于