NetTcpBinding.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::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

属性值

为交换的 Soap 消息指定复杂性约束的 XmlDictionaryReaderQuotasThe XmlDictionaryReaderQuotas that specifies the complexity constraints on soap messages exchanged. 下面的备注部分中提供了这些约束的默认值。The default values for these constraints are provided in the following Remarks section.

示例

下面的示例演示如何获取 ReaderQuotas 对象。The following example shows how to get the ReaderQuotas object.

XmlDictionaryReaderQuotas xmlDictionaryReaderQuotas =
    binding.ReaderQuotas;

注解

这些复杂性约束可以抵御某种类型的拒绝服务 (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 are as follows:

适用于