“应用程序配置"文件中的最大键/值长度 [英] Max key/value length in 'application configuration' files

查看:71
本文介绍了“应用程序配置"文件中的最大键/值长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

配置文件中MyKeyMyValue允许的最大长度是多少?

What's the maximum allowed length for MyKey and MyValue in a configuration file?

<configuration>
  <appSettings>
    <add key="MyKey" value="MyValue" />
  </appSettings>
</configuration>

推荐答案

据了解,webconfig文件中的键值对没有限制.....

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

如何存储自定义对象在web.config中?

这篇关于“应用程序配置"文件中的最大键/值长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆