Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are appSettings keys valid characters?

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:

<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?

like image 508
Jean-François Beauchamp Avatar asked Jul 04 '13 15:07

Jean-François Beauchamp


1 Answers

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.

like image 161
Rob Johnston Avatar answered Sep 20 '22 10:09

Rob Johnston