如何读取appid和appsecret? [英] how to read appid and appsecret?

查看:396
本文介绍了如何读取appid和appsecret?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经在C#中创建了一个应用程序以连接到FB,我已将我的appid和appsecret放置在web.config中,如

Hi,
I have make an application in C# to connect to FB,i have placed my appid and appsecret in web.config like

<facebookSettings appId="apid" appSecret="secid" />



我想知道如何在C#中阅读它们吗?

由于它们不在"appsettings"部分中,而是位于"configuring"部分中

关于



I want to know how can i read them in C#?

Since they are not in appsettings section, but they are inside configuration section

Regards

推荐答案

尝试在MSDN文章上查找此
Try lookin at the MSDN article for this How to: Read application settings from Web.Config[^].

Hope this helps


这篇关于如何读取appid和appsecret?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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