This is strange. I thought I would easily find this information googling, but I haven't had much success. All I want to know is what are the valid characters that can be used for the keys in the AppSettings section of a Web.config file. Eg:
这是奇怪的。我想我可以很容易地在谷歌上找到这些信息,但是我并没有取得太大的成功。我想知道的是,在Web的AppSettings部分,哪些字符可以用于键。配置文件。例如:
<add key="MySpeed" value="100" />
<add key="My.Speed" value="100" />
<add key="My Speed" value="100" />
<add key="Vélocité" value="100" />
Would all of the above keys be permitted?
以上所有的钥匙都可以吗?
1 个解决方案
#1
3
The Microsoft documentation states only that the key is a String attribute. Nothing more. Their examples do show a key with spaces in the name.
Microsoft文档只说明键是一个字符串属性。仅此而已。它们的示例确实显示了名称中带有空格的键。
#1
3
The Microsoft documentation states only that the key is a String attribute. Nothing more. Their examples do show a key with spaces in the name.
Microsoft文档只说明键是一个字符串属性。仅此而已。它们的示例确实显示了名称中带有空格的键。