Whats the best way to store sftp server connection 开发者_如何学Ccredentials in web.config? It consists of 4 things:
- IP
- user
- password
- port
Thanks :-)
You can put it in the <appSettings>
section.
For example:
<configuration>
<appSettings>
<add key="SFTP IP" value="127.0.0.1" />
</appSettings>
</configuration>
string ip = ConfigurationManager.AppSettings["SFTP IP"];
精彩评论