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 ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.