问题
What's the maximum allowed length for MyKey
and MyValue
in a configuration file?
<configuration>
<appSettings>
<add key="MyKey" value="MyValue" />
</appSettings>
</configuration>
回答1:
As per knowledge there is no limitation the key value pair in webconfig file .....
if you are planning to add object to config file check this post will help you to achieve your task
How to store custom objects in web.config ?
来源:https://stackoverflow.com/questions/6382758/max-key-value-length-in-application-configuration-files