StoredContact class

Applies to Windows Phone only

Represents a contact associated with a custom contact store.

Syntax


public sealed class StoredContact : IContactInformation

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The StoredContact class has these types of members:

Constructors

The StoredContact class has these constructors.

ConstructorDescription
StoredContact(ContactStore) Initializes a new instance of the StoredContact class.
StoredContact(ContactStore,ContactInformation) Initializes a new instance of the StoredContact class and initializes the property values from the provided ContactInformation object.

 

Methods

The StoredContact class has these methods. It also inherits methods from the Object class.

MethodDescription
GetDisplayPictureAsync Gets the display picture of a stored contact.
GetExtendedPropertiesAsync Gets the extended properties for a stored contact as an map of name/value pairs.
GetPropertiesAsync Gets the known properties for the contact.
ReplaceExistingContactAsync Replaces the contact with the specified ID with the current contact.
SaveAsync Saves the current state of the contact to the contact store.
SetDisplayPictureAsync Sets the display picture for a contact using an IInputStream object.
ToVcardAsync Retrieves a vCard representation of the contact using the vCard version 3.0 format.
ToVcardAsync(VCardFormat) Retrieves a vCard representation of the contact using the specified vCard format.

 

Properties

The StoredContact class has these properties.

PropertyAccess typeDescription

DisplayName

Read/writeGets or sets the display name of a stored contact.

DisplayPicture

Read-onlyGets the display picture of a stored contact.

DisplayPictureDate

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

FamilyName

Read/writeGets or sets the family name of the stored contact.

GivenName

Read/writeGets or sets the given name of the stored contact.

HonorificPrefix

Read/writeGets or sets the honorific prefix of the stored contact.

HonorificSuffix

Read/writeGets or sets the honorific suffix of the stored contact.

Id

Read-onlyGets the local identifier of the stored contact.

RemoteId

Read/writeGets the remote identifier of the stored contact.

Store

Read-onlyGets the ContactStore in which the contact is stored.

 

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.

Requirements

Minimum supported client

None supported [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

Minimum supported phone

Windows Phone 8

Namespace

Windows.Phone.PersonalInformation
Windows::Phone::PersonalInformation [C++]

Metadata

Windows.winmd

Capabilities

ID_CAP_CONTACTS [Windows Phone]

See also

Object
IContactInformation

 

 

Community Additions

ADD
Show:
© 2014 Microsoft