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

Retrieving Appointments

The Appointments class allows you to retrieve appointments that fall between two specified dates.

Note

To access the user’s appointments, the ID_CAP_APPOINTMENTS capability must be present in the WMAppManifest.xml file.

For more information on the phone’s security capability model, see Chapter 2.

To query the user’s appointments, define an Appointments instance as a field in a class, as shown:

Appointments appointments;

Instantiate the Appointments object, subscribe to its SearchCompleted event, and then call SearchAsync. The following excerpt demonstrates the retrieval of appointments that fall within the next six months:

void SearchAppointments(){    appointments = new Appointments(); ...

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