ContactInformation class

Applies to Windows Phone only

Represents a contact without an association to a contact store.

Syntax


Public NotInheritable Class ContactInformation
    Implements IContactInformation

Attributes

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

Members

The ContactInformation class has these types of members:

Constructors

The ContactInformation class has these constructors.

ConstructorDescription
ContactInformation Initializes a new instance of the ContactInformation class.

 

Methods

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

MethodDescription
GetDisplayPictureAsync Gets the display picture of a contact.
GetPropertiesAsync Gets the properties for a contact as an map of name/value pairs.
ParseVcardAsync Parses a vCard from a stream and returns a populated ContactInformation object.
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 ContactInformation class has these properties.

PropertyAccess typeDescription

DisplayName

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

DisplayPicture

Read-onlyGets the display picture of a contact.

FamilyName

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

GivenName

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

HonorificPrefix

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

HonorificSuffix

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

 

Remarks

This class is used to store information about a contact. It has a set of commonly used built-in properties like a family name and a description, and it also allows you to store custom properties as name/value pairs. The StoredContact class shares all of these properties but it requires you to open your app's custom contact store before you can obtain an instance of the class. Many applications will use StoredContact directly and never need to use ContactInformation. If you need to temporarily store contact information without opening your contact store or if you need to parse contact information from a vCard using ParseVcardAsync, you can use ContactInformation and then pass the object to the StoredContact constructor.

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