ContactPicker.PickContactsAsync | pickContactsAsync method

Applies to Windows and Windows Phone

Launches the Contact Picker for selecting multiple contacts.

Syntax


contactPicker.pickContactsAsync().done( /* Your success and error handlers */ );

Parameters

This method has no parameters.

Return value

Type: IAsyncOperation<IVector>

The operation that launches the contact picker.

Remarks

To pick only a single contact, use PickContactAsync.

For info about how to select contacts, see Quickstart: Selecting user contacts (Windows Store apps using C#/VB/C++ and XAML) and Quickstart: Selecting user contacts (Windows Store apps using JavaScript and HTML).

Examples

This example shows how to use PickContactsAsync to get multiple contacts.


var contactPicker = new Windows.ApplicationModel.Contacts.ContactPicker();
IList<Contact> contacts = await contactPicker.PickContactsAsync();


Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Contacts
Windows::ApplicationModel::Contacts [C++]

Metadata

Windows.winmd

See also

Contact Picker app sample
ContactPicker

 

 

Show:
© 2014 Microsoft. All rights reserved.