This topic has not yet been rated - Rate this topic

Contacts Class

July 26, 2012

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

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.

  NameDescription
Public methodContactsInitializes a new instance of the Contacts class.
Top
  NameDescription
Public propertyAccountsGets the accounts from which contacts are available.
Protected propertyBaseUriGets the string used to indicate the data context. (Inherited from PhoneDataSharingContext.)
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodExecuteRequest<T>Performs a search for objects in a data context. (Inherited from PhoneDataSharingContext.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSearchAsyncAsynchronously searches for contacts in the user’s contact data.
Public methodToString (Inherited from Object.)
Top
  NameDescription
Public eventSearchCompletedOccurs 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)
© 2013 Microsoft. All rights reserved.