gray laptop computer showing html codes in shallow focus photography

How to find the Mobile Operator in Windows Phone using C# ?

If you want to know the Mobile Operator of your Windows Phone in your App , you can retreive the Mobile Operator by using the static CellularMobileOperator property of the DeviceNetworkInformation class

Just include the Namespace Microsoft.Phone.Net.NetworkInformation and add the below code

private void button1_Click_1(object sender, RoutedEventArgs e)
{
string MobileOperator = "Mobile Operator : " + DeviceNetworkInformation.CellularMobileOperator;
MessageBox.Show(MobileOperator);
}

Run the Windows Phone Application and you will see the Mobile Operator 🙂

How to find the Mobile Operator in Windows Phone using C# ?
How to find the Mobile Operator in Windows Phone using C# ?

 

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...