Previously in WP8.0,To determine mobile operator we are using DeviceNetworkInformation.CellularMobileOperator.
WP8.0:
string MobileOperatorName = DeviceNetworkInformation.CellularMobileOperator; WP8.1:public void GetMobileOperatorName()
{
var result = NetworkInformation.GetConnectionProfiles();
string CarrierName = "";
foreach (var connectionProfile in result)
{
if (connectionProfile.IsWwanConnectionProfile)
{
foreach (var networkName in connectionProfile.GetNetworkNames())
{
CarrierName = networkName;//Get mobile operator Name
break;
}
}
}
}Note: You must enabled your data connection.
Read more useful tips from http://bsubramanyamraju.blogspot.in/2014/07/windowsphone-tipstop-basics-for.html
