This topic has not yet been rated - Rate this topic

Contacts Class

Windows Phone

March 22, 2012

Provides methods and events for interacting with a user’s contact data.

System.Object
  Microsoft.Phone.UserData.PhoneDataSharingContext
    Microsoft.Phone.UserData.Contacts

Namespace:  Microsoft.Phone.UserData
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class Contacts : PhoneDataSharingContext

The Contacts type exposes the following members.

  Name Description
Public method Contacts Initializes a new instance of the Contacts class.
Top
  Name Description
Public property Accounts Gets the accounts from which contacts are available.
Protected property BaseUri Gets the string used to indicate the data context. (Inherited from PhoneDataSharingContext.)
Top
  Name Description
Public method Equals (Inherited from Object.)
Protected method ExecuteRequest<T> Performs a search for objects in a data context. (Inherited from PhoneDataSharingContext.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method SearchAsync Asynchronously searches for contacts in the user’s contact data.
Public method ToString (Inherited from Object.)
Top
  Name Description
Public event SearchCompleted Occurs when a search for contacts completes.
Top

Windows® Phone provides an aggregated view of the user’s contact 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. The StorageKind enumeration lists the possible sources of data.

Windows Phone OS

Supported in: 7.1

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)