开发者

Problem using Add key value in app.config of c# windows application

开发者 https://www.devze.com 2023-01-02 15:40 出处:网络
I am trying to use the below in my app.config <add key=\"InstanceID\" value=\"HID\\VID_413C&PID_3200\\6&227E6开发者_运维百科ED3&0&0000\" />

I am trying to use the below in my app.config

<add key="InstanceID" value="HID\VID_413C&PID_3200\6&227E6开发者_运维百科ED3&0&0000" />

It shows error in app.config, what is the problem ? i want to use this value as string in my c# code.


You need to encode your special characters, example (& = &amp;). I think that's the only problem character.

0

精彩评论

暂无评论...
验证码 换一张
取 消