我想是这样的:
<configSections>
<section name="validationXsds" type="System.Configuration.DictionarySectionHandler, System" />
</configSections>
<validationXsds>
<add key="http://schemas.xmlsoap.org/soap/envelope/" value="http://dev.ei.directv.com/schemas/xmlsoap/envelope.xsd"/>
<add key="http://schemas.xmlsoap.org/soap/encoding/" value="http://dev.ei.directv.com/schemas/xmlsoap/encoding.xsd"/>
<add key="http://ei.directv.com/schemas/envelope/v3_0" value="http://dev.ei.directv.com/schemas/envelope/v3.0/Envelope.xsd"/>
</validationXsds>
IDictionary xsds = (IDictionary)WebConfigurationManager.GetSection("validationXsds");
更新:在.NET 4.0中,我正在使用
type="System.Configuration.NameValueSectionHandler, System, Version=4.0.0.0,Culture=neutral, PublicKeyToken=b77a5c561934e089"