The following example demonstrates getting the value of the CellularMobileOperator property and displaying it in a message box. In this example, you put the code in a button click event for testing purposes only. In your own applications, you can access the CellularMobileOperator property wherever you need it.
This example assumes that you have a Windows Phone application with a button named button1. This example also assumes that you have added the following statement to your code window.