Max key/value length in 'application configuration' files

♀尐吖头ヾ 提交于 2020-01-14 13:48:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!