O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Placing a Call with the PhoneCallTask

The phone call task is used to launch the built-in Phone app and displays the specified phone number and display name.

Note

The phone call is not placed until it is initiated by the user.

The following example demonstrates how to launch the phone call task:

PhoneCallTask phoneCallTask = new PhoneCallTask                                        {                                            DisplayName = "Alan Turing",                                            PhoneNumber = "882960"                                        };phoneCallTask.Show();

If the PhoneCallTask.PhoneNumber is a null or empty string, calling the PhoneCallTask.Show method has no effect. If the PhoneCallTask.PhoneNumber ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required