Microsoft.Phone.UserData Namespace
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The Microsoft.Phone.UserData namespace provides types for interacting with a user’s contact and calendar data.
The main classes are the Contacts, Contact, Appointments, and Appointment classes. The Contacts class allows you to search a user’s contact data and returns a collection of Contact objects. The Appointments class allows you to search a user’s calendar and returns a collection of Appointment objects.
Windows Phone provides an aggregated view of the user’s contact and calendar data across the user's different accounts. Information can come from sources such as data entered in the phone itself, social networking sites, and other data service providers. Not all data from all service providers is exposed publicly through this API. For more information, see Contacts and Calendar for Windows Phone 8.
Classes
Class | Description | |
---|---|---|
Account | Contains information about a user’s account with a data provider, such as Facebook or Microsoft Outlook, that the user has set up on the phone. | |
Appointment | Contains all available information about an individual appointment. | |
Appointments | Provides methods and events for interacting with a user’s appointment data. | |
AppointmentsSearchEventArgs | Provides data for the SearchCompleted event. | |
Attendee | Contains information about an attendee associated with an appointment. | |
CompleteName | Contains information about the name of a contact. | |
Contact | Contains all available information about an individual contact. | |
ContactAddress | Contains information about an address associated with a contact. | |
ContactCompanyInformation | Contains information for a company associated with a contact, such as the contact’s title and office location. | |
ContactEmailAddress | Contains information about an email address associated with a contact. | |
ContactPhoneNumber | Contains information about a phone number associated with a contact. | |
Contacts | Provides methods and events for interacting with a user’s contact data. | |
ContactsSearchEventArgs | Provides data for the SearchCompleted event. | |
PhoneDataSharingContext | The base class for data sharing contexts such as Contacts and Appointments. |
Enumerations
Enumeration | Description | |
---|---|---|
AddressKind | Specifies information about a physical address. | |
AppointmentStatus | Specifies information about how to treat the block of time of an appointment. | |
EmailAddressKind | Specifies information about an email address. | |
FilterKind | Specifies the kind of filter to use when searching for contacts. | |
PhoneNumberKind | Specifies information about a phone number. | |
StorageKind | Specifies the possible sources of user contact and calendar data. |