设置:
在发布选项中勾选“允许给应用程序传递URL参数”;
启动程序并传参:
比如:名字为HelloWorld的程序。调用时的URL:Http://域名/HelloWorld.application?para1='123'¶2=456
接收参数:
通过如下几行代码:
1 if (ApplicationDeployment.IsNetworkDeployed) 2 { 3 string paras=ApplicationDeployment.CurrentDeployment.ActivationUri.Query; 4 }