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

Saving a Contact’s Email Using the SaveEmailAddressTask

The SaveEmailAddressTask is a chooser that allows the user to save a specified email address using the built-in Contacts application. An email address can be saved to an existing contact or to a new contact. SaveEmailAddressTask does not return data, but its Completed event can be handled to determine whether the task was completed correctly.

The SaveEmailAddressTask should be defined as a field in your class, like so:

readonly SaveEmailAddressTask saveEmailAddressTask                                        = new SaveEmailAddressTask();

Subscribe to the SaveEmailAddressTask.Completed event within your class constructor, as shown:

saveEmailAddressTask.Completed ...

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