c# - 访问运营商信息 windows phone

标签 c# silverlight windows-phone-7 xaml windows-phone

<分区>

Possible Duplicate:
how to get Carrier details on mango?

是否可以在Windows Phone 中获取运营商信息? 我想在应用程序中显示运营商名称。

最佳答案

您可以使用 DeviceNetworkInformation.CellularMobileOperator 访问此信息。

DeviceNetworkInformation.CellularMobileOperator Property on MSDN

var operatorName = DeviceNetworkInformation.CellularMobileOperator ?? "(No Network)";

由于在未找到网络的情况下该属性可能为null,因此上述代码将使您获得网络运营商或(No Network)运营商名称

关于c# - 访问运营商信息 windows phone,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14435751/

相关文章:

c# - 在 SilverLight 中上传文件?

c# - 如何以编程方式在 Windows 10 中设置默认浏览器

c# - PostSharp AssemblyLoadException Autofac

c# - 将字符串 "7/16/2013 7:00:00 AM"转换为日期时间

asp.net-mvc - Silverlight 4 MediaElement 源 Uri 问题

c# - 事件不会跨模块触发(prism、MVVM、silverlight c#)

c# - Windows Phone 的 MVVM 设计模式

iphone - 移动应用程序 - 针对 iPhone、WP7、Android 和黑莓

html - Windows Phone 中的固定宽度视口(viewport)

c# - 是否有人围绕 StringBuilders 或 Streams 实现了 Regex 和/或 Xml 解析器?