ContactInformation class

ContactInformation class

Represents a contact without an association to a contact store.

Syntax


public ref class ContactInformation sealed : IContactInformation

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/write

Gets or sets the display name of a contact.

DisplayPicture

Read-only

Gets the display picture of a contact.

FamilyName

Read/write

Gets or sets the family name of a contact.

GivenName

Read/write

Gets or sets the given name of a contact.

HonorificPrefix

Read/write

Gets or sets the honorific prefix of a contact.

HonorificSuffix

Read/write

Gets 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 (Windows 10 device family)

Device family

Mobile, introduced version 10.0.10240.0

API contract

Windows.Phone.PhoneContract, introduced version 1.0

Namespace

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

Metadata

Windows.Phone.PhoneContract.winmd

Capabilities

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.WinMD

Capabilities

ID_CAP_CONTACTS [Windows Phone]

Attributes

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

See also

Object
IContactInformation
Implementing contact bindings in a Windows Phone Silverlight app

 

 

Show:
© 2016 Microsoft