ContactQueryResult ContactQueryResult ContactQueryResult Class

Definition

Represents the result of a contact query.

public sealed class ContactQueryResult : IContactQueryResultpublic sealed class ContactQueryResult : IContactQueryResultPublic NotInheritable Class ContactQueryResult Implements IContactQueryResult
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()

Gets the number of contacts in the contact store.

public IAsyncOperation<uint> GetContactCountAsync()public IAsyncOperation<uint> GetContactCountAsync()Public Function GetContactCountAsync() As IAsyncOperation( Of uint )
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.

Attributes
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()

Retrieves contacts from the contact store.

public IAsyncOperation<IVectorView<StoredContact>> GetContactsAsync()public IAsyncOperation<IVectorView<StoredContact>> GetContactsAsync()Public Function GetContactsAsync() As IAsyncOperation( Of IVectorViewStoredContact )
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; for C++, APIs of IReadOnlyList<StoredContact> for .NET.)

Attributes
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]

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(UInt32 startIndex, UInt32 maxNumberOfItems)public IAsyncOperation<IVectorView<StoredContact>> GetContactsAsync(UInt32 startIndex, UInt32 maxNumberOfItems)Public Function GetContactsAsync(startIndex As UInt32, maxNumberOfItems As UInt32) As IAsyncOperation( Of IVectorViewStoredContact )
Parameters
startIndex
System.UInt32 System.UInt32 System.UInt32

The index of the first contact to be retrieved.

maxNumberOfItems
System.UInt32 System.UInt32 System.UInt32

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

Attributes
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()

Gets the current query options.

public ContactQueryOptions GetCurrentQueryOptions()public ContactQueryOptions GetCurrentQueryOptions()Public Function GetCurrentQueryOptions() As ContactQueryOptions
Returns
Attributes
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]