NetMsmqBinding.ReaderQuotas プロパティ

定義

このバインディングに関連付けられている XmlDictionaryReaderQuotas を取得または設定します。

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

プロパティ値

このバインディングに関連付けられている XmlDictionaryReaderQuotas

例外

値は null です。

次のコードは、 XmlDictionaryReaderQuotas プロパティを設定する方法を示しています。

NetMsmqBinding binding = new NetMsmqBinding();
XmlDictionaryReaderQuotas readerQuotas = new XmlDictionaryReaderQuotas();
readerQuotas.MaxArrayLength = 25 * 1024;
binding.ReaderQuotas = readerQuotas;

注釈

XmlDictionaryReaderQuotas オブジェクトは、バインドで構成されたエンドポイントによって処理できる SOAP メッセージの複雑さに関する制約を定義します。 これらの制約には、 maxArrayLengthmaxBytesPerReadmaxDepthmaxNameTableCharCount、および maxStringContentLengthが含まれます。 これらの値は、サービス拒否攻撃の防止に役立ちます。 詳細については、XmlDictionaryReaderQuotasを参照してください。

適用対象