2013-06-03 54 views

回答

1

您可以确定如果一个应用程序被从网络这样运行了:

try { 
     if (ApplicationDeployment.CurrentDeployment == null || 
      ApplicationDeployment.CurrentDeployment.ActivationUri == null) 
     return false; 
    } 
    catch { 
     return false; 
    } 
    return true; 

只有当你从网络上运行,所以如果你想稍后访问这些信息这会成真,坚持价值的地方。