IContactInformation interface

IContactInformation interface

Defines the interface for contact information.

Syntax


Public Interface IContactInformation

Members

The IContactInformation interface has these types of members:

Methods

The IContactInformation interface 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.
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 IContactInformation interface 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 the 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

For most scenarios you should use the ContactInformation class, which provides the implementation for the IContactInformation API.

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

[Version(0x06020000)]

See also

ContactInformation

 

 

Show:
© 2016 Microsoft