ContactQueryResult ContactQueryResult ContactQueryResult ContactQueryResult Class

Definition

Represents the result of a contact query.

public : sealed class ContactQueryResult : IContactQueryResult
public sealed class ContactQueryResult : IContactQueryResult
Public NotInheritable Class ContactQueryResult Implements IContactQueryResult
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

Methods

GetContactCountAsync() GetContactCountAsync() GetContactCountAsync() GetContactCountAsync()

Gets the number of contacts in the contact store.

public : IAsyncOperation<unsigned int> GetContactCountAsync()
public IAsyncOperation<uint> GetContactCountAsync()
Public Function GetContactCountAsync() As IAsyncOperation( Of uint )
var iAsyncOperation = contactQueryResult.getContactCountAsync();
Returns

When this method completes, it returns the number of contacts in the contact store. If you use Asynchronous programming, the result type is an unsigned integer number.

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]
See Also

GetContactsAsync() GetContactsAsync() GetContactsAsync() GetContactsAsync()

Retrieves contacts from the contact store.

public : IAsyncOperation<IVectorView<StoredContact>> GetContactsAsync()
public IAsyncOperation<IReadOnlyList<StoredContact>> GetContactsAsync()
Public Function GetContactsAsync() As IAsyncOperation<IReadOnlyList<StoredContact>>( Of IVectorView )
var iAsyncOperation = contactQueryResult.getContactsAsync();
Returns
IAsyncOperation<IVectorView<StoredContact>> IAsyncOperation<IReadOnlyList<StoredContact>> IAsyncOperation<IReadOnlyList<StoredContact>> IAsyncOperation<IReadOnlyList<StoredContact>>

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; for C++, APIs of IReadOnlyList for .NET.)

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]
See Also

GetContactsAsync(UInt32, UInt32) GetContactsAsync(UInt32, UInt32) GetContactsAsync(UInt32, UInt32) GetContactsAsync(UInt32, UInt32)

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

public : IAsyncOperation<IVectorView<StoredContact>> GetContactsAsync(unsigned int startIndex, unsigned int maxNumberOfItems)
public IAsyncOperation<IReadOnlyList<StoredContact>> GetContactsAsync(UInt32 startIndex, UInt32 maxNumberOfItems)
Public Function GetContactsAsync(startIndex As UInt32, maxNumberOfItems As UInt32) As IAsyncOperation<IReadOnlyList<StoredContact>>( Of IVectorView )
var iAsyncOperation = contactQueryResult.getContactsAsync(startIndex, maxNumberOfItems);
Parameters
startIndex
unsigned int UInt32 UInt32 UInt32

The index of the first contact to be retrieved.

maxNumberOfItems
unsigned int UInt32 UInt32 UInt32

The number of contacts to retrieve.

Returns
IAsyncOperation<IVectorView<StoredContact>> IAsyncOperation<IReadOnlyList<StoredContact>> IAsyncOperation<IReadOnlyList<StoredContact>> IAsyncOperation<IReadOnlyList<StoredContact>>

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; for C++, APIs of IReadOnlyList for .NET.)

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]
See Also

GetCurrentQueryOptions() GetCurrentQueryOptions() GetCurrentQueryOptions() GetCurrentQueryOptions()

Gets the current query options.

public : ContactQueryOptions GetCurrentQueryOptions()
public ContactQueryOptions GetCurrentQueryOptions()
Public Function GetCurrentQueryOptions() As ContactQueryOptions
var contactQueryOptions = contactQueryResult.getCurrentQueryOptions();
Returns
Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]