您的位置:首页 > 其它

Silverlight 读取Web.config

2012-06-11 20:11 218 查看
web.config

<appSettings>
<add key="ApplicationName" value="A Better Silverlight Configuration Demonstration"/>
</appSettings>

在*.xaml.cs:

App application = (App)Application.Current; string ApplicationName = application.DeploymentConfigurations["ApplicationName"];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: