WCF XmlDictionaryReaderQuotas不存在

Sta*_*lfi 9 c# wcf

我想在basichtttpbiding中设置maxArrayLength.但是,使用out配置文件执行此操作的唯一方法是创建一个XmlDictionaryReaderQuotas,它不会在System.xml中存在,并将其放在BasicHttpBinding1.ReaderQuotas中.

如何使用配置文件设置maxArrayLength ?

编辑:

我不能这样做:basichtttpbiding1.ReaderQuotas.MaxArrayLength = 1000000; 因为我之后没有任何选择可供选择:basichtttpbiding1.ReaderQuotas.[可供选择的选项]

Sta*_*lfi 22

解决了.

需要手动添加引用:System.Runtime.Serialization然后类XmlDictionaryReaderQuotas将显示在System.Xml中