访问 Windows Phone 运营商信息

4
2个回答

2
您可以使用DeviceNetworkInformation.CellularMobileOperator来访问此信息。 MSDN上的DeviceNetworkInformation.CellularMobileOperator属性
var operatorName = DeviceNetworkInformation.CellularMobileOperator ?? "(No Network)";

由于在没有找到网络的情况下该属性可能为null,因此上述代码将使你得到运营商或(无网络)中的一个,存入operatorName


0

您可以使用DeviceNetworkInformation.CellularMobileOperator获取运营商名称。

更多详细信息请参见此处


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接