使用WP7.1 SDK获取电话运营商

时间:2012-02-18 18:19:58

标签: windows-phone-7.1 windows-phone-7

有没有办法让手机运营商使用WP7.1 SDK?

1 个答案:

答案 0 :(得分:3)

根据http://msdn.microsoft.com/en-us/library/hh202875%28v=vs.92%29.aspx,你可以从DeviceNetworkInformation.CellularMobileOperator获取它

e.g。

 private void button1_Click(object sender, RoutedEventArgs e)
 {
     System.Text.StringBuilder sb = new System.Text.StringBuilder();

     sb.Append("Mobile operator:  ");
     sb.AppendLine(DeviceNetworkInformation.CellularMobileOperator);

     MessageBox.Show(sb.ToString());
 }