StoredContact StoredContact StoredContact StoredContact StoredContact Class

Definition

Represents a contact associated with a custom contact store.

public : sealed class StoredContact : IContactInformation, IContactInformation2, IStoredContact
struct winrt::Windows::Phone::PersonalInformation::StoredContact : IContactInformation, IContactInformation2, IStoredContact
public sealed class StoredContact : IContactInformation, IContactInformation2, IStoredContact
Public NotInheritable Class StoredContact Implements IContactInformation, IContactInformation2, IStoredContact
var storedContact = new storedContact(store);
Attributes
Windows 10 requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

Remarks

You must open your app's contact store in order to obtain a StoredContact object. To work with contact information that is not yet associated with a store or to parse contact information from a vCard, use the ContactInformation class.

These APIs create or obtain a StoredContact object:

Constructors

StoredContact(ContactStore) StoredContact(ContactStore) StoredContact(ContactStore) StoredContact(ContactStore) StoredContact(ContactStore)

Initializes a new instance of the StoredContact class.

StoredContact(ContactStore, ContactInformation) StoredContact(ContactStore, ContactInformation) StoredContact(ContactStore, ContactInformation) StoredContact(ContactStore, ContactInformation) StoredContact(ContactStore, ContactInformation)

Initializes a new instance of the StoredContact class and initializes the property values from the provided ContactInformation object.

Properties

DisplayName DisplayName DisplayName DisplayName DisplayName

Gets or sets the display name of a stored contact.

DisplayPicture DisplayPicture DisplayPicture DisplayPicture DisplayPicture

Gets the display picture of a stored contact.

DisplayPictureDate DisplayPictureDate DisplayPictureDate DisplayPictureDate DisplayPictureDate

Gets or sets the date that a display picture was created or modified. Used to enable sorting of display pictures by date.

FamilyName FamilyName FamilyName FamilyName FamilyName

Gets or sets the family name of the stored contact.

GivenName GivenName GivenName GivenName GivenName

Gets or sets the given name of the stored contact.

HonorificPrefix HonorificPrefix HonorificPrefix HonorificPrefix HonorificPrefix

Gets or sets the honorific prefix of the stored contact.

HonorificSuffix HonorificSuffix HonorificSuffix HonorificSuffix HonorificSuffix

Gets or sets the honorific suffix of the stored contact.

Id Id Id Id Id

Gets the local identifier of the stored contact.

RemoteId RemoteId RemoteId RemoteId RemoteId

Gets the remote identifier of the stored contact.

Store Store Store Store Store

Gets the ContactStore in which the contact is stored.

Methods

GetDisplayPictureAsync() GetDisplayPictureAsync() GetDisplayPictureAsync() GetDisplayPictureAsync() GetDisplayPictureAsync()

Gets the display picture of a stored contact.

GetExtendedPropertiesAsync() GetExtendedPropertiesAsync() GetExtendedPropertiesAsync() GetExtendedPropertiesAsync() GetExtendedPropertiesAsync()

Gets the extended properties for a stored contact as an map of name/value pairs.

GetPropertiesAsync() GetPropertiesAsync() GetPropertiesAsync() GetPropertiesAsync() GetPropertiesAsync()

Gets the known properties for the contact.

ReplaceExistingContactAsync(String) ReplaceExistingContactAsync(String) ReplaceExistingContactAsync(String) ReplaceExistingContactAsync(String) ReplaceExistingContactAsync(String)

Replaces the contact with the specified ID with the current contact.

SaveAsync() SaveAsync() SaveAsync() SaveAsync() SaveAsync()

Saves the current state of the contact to the contact store.

SetDisplayPictureAsync(IInputStream) SetDisplayPictureAsync(IInputStream) SetDisplayPictureAsync(IInputStream) SetDisplayPictureAsync(IInputStream) SetDisplayPictureAsync(IInputStream)

Sets the display picture for a contact using an IInputStream object.

ToVcardAsync() ToVcardAsync() ToVcardAsync() ToVcardAsync() ToVcardAsync()

Retrieves a vCard representation of the contact using the vCard version 3.0 format.

ToVcardAsync(VCardFormat) ToVcardAsync(VCardFormat) ToVcardAsync(VCardFormat) ToVcardAsync(VCardFormat) ToVcardAsync(VCardFormat)

Retrieves a vCard representation of the contact using the specified vCard format.

See Also