Share via


ContactQueryResult.GetContactsAsync Method

Definition

Overloads

GetContactsAsync()

Retrieves contacts from the contact store.

GetContactsAsync(UInt32, UInt32)

Retrieves contacts from the contact store given the specified starting index and number of items to return..

GetContactsAsync()

Retrieves contacts from the contact store.

public:
 virtual IAsyncOperation<IVectorView<StoredContact ^> ^> ^ GetContactsAsync() = GetContactsAsync;
/// [Windows.Foundation.Metadata.Overload("GetContactsAsync")]
IAsyncOperation<IVectorView<StoredContact>> GetContactsAsync();
[Windows.Foundation.Metadata.Overload("GetContactsAsync")]
public IAsyncOperation<IReadOnlyList<StoredContact>> GetContactsAsync();
function getContactsAsync()
Public Function GetContactsAsync () As IAsyncOperation(Of IReadOnlyList(Of StoredContact))

Returns

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

Attributes

Windows requirements

App capabilities
ID_CAP_CONTACTS [Windows Phone]

See also

Applies to

GetContactsAsync(UInt32, UInt32)

Retrieves contacts from the contact store given the specified starting index and number of items to return..

public:
 virtual IAsyncOperation<IVectorView<StoredContact ^> ^> ^ GetContactsAsync(unsigned int startIndex, unsigned int maxNumberOfItems) = GetContactsAsync;
/// [Windows.Foundation.Metadata.Overload("GetContactsAsyncInRange")]
IAsyncOperation<IVectorView<StoredContact>> GetContactsAsync(uint32_t const& startIndex, uint32_t const& maxNumberOfItems);
[Windows.Foundation.Metadata.Overload("GetContactsAsyncInRange")]
public IAsyncOperation<IReadOnlyList<StoredContact>> GetContactsAsync(uint startIndex, uint maxNumberOfItems);
function getContactsAsync(startIndex, maxNumberOfItems)
Public Function GetContactsAsync (startIndex As UInteger, maxNumberOfItems As UInteger) As IAsyncOperation(Of IReadOnlyList(Of StoredContact))

Parameters

startIndex
UInt32

unsigned int

uint32_t

The index of the first contact to be retrieved.

maxNumberOfItems
UInt32

unsigned int

uint32_t

The number of contacts to retrieve.

Returns

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

Attributes

Windows requirements

App capabilities
ID_CAP_CONTACTS [Windows Phone]

See also

Applies to