Windows Dev Center

StoredContact.GetPropertiesAsync method

Gets the known properties for the contact.

Syntax


public IAsyncOperation<IDictionary> GetPropertiesAsync()

Parameters

This method has no parameters.

Return value

Type: IAsyncOperation<IMap>

When this method completes, it returns a map/dictionary of name/value pairs (string name, untyped values). If you use awaitable syntax, the result type is a map or dictionary of these key-value pairs, keyed by string names. (You can use APIs of IMap<Platform::String,Platform::Object> for C++, APIs of IDictionary<String,Object> for .NET.)

Remarks

The key names must be one of the properties of the KnownContactProperties class. To get values for arbitrary app-defined properties, use GetExtendedPropertiesAsync instead. The contents of the collection is saved when SaveAsync is called.

Requirements (Windows 10 device family)

Device family

Mobile

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]

See also

StoredContact
Asynchronous programming

 

 

Show:
© 2015 Microsoft