Windows Dev Center

ContactQueryResult.GetContactsAsync() method

Retrieves contacts from the contact store.

Syntax


public:
IAsyncOperation<IVectorView<StoredContact>>^ GetContactsAsync()

Parameters

This method has no parameters.

Return value

Type: IAsyncOperation<IVectorView<StoredContact>>

When this method completes, it returns an IVectorView containing StoredContact objects. If you use awaitable syntax, the result type is a read-only list/vector of StoredContact items. (You can use APIs of IVectorView<StoredContact> for C++, APIs of IReadOnlyList<StoredContact> for .NET.)

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

ID_CAP_CONTACTS [Windows Phone]

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

ContactQueryResult
GetContactsAsync(UInt32, UInt32)
StoredContact
Asynchronous programming

 

 

Community Additions

ADD
Show:
© 2015 Microsoft