ContactQueryResult ContactQueryResult ContactQueryResult ContactQueryResult Class

Represents the result of a contact query.

Syntax

Declaration

public sealed class ContactQueryResultpublic sealed class ContactQueryResultPublic NotInheritable Class ContactQueryResultpublic sealed class ContactQueryResult

Methods summary

Gets the number of contacts in the contact store.

Retrieves contacts from the contact store.

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

Gets the current query options.

Methods

  • GetContactCountAsync()
    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 )public IAsyncOperation<uint> 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.

  • GetContactsAsync()
    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 )public IAsyncOperation<IVectorView<StoredContact>> GetContactsAsync()

    Returns

  • 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(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 )public IAsyncOperation<IVectorView<StoredContact>> GetContactsAsync(UInt32 startIndex, UInt32 maxNumberOfItems)

    Parameters

    • startIndex
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

      The index of the first contact to be retrieved.

    • maxNumberOfItems
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

      The number of contacts to retrieve.

    Returns

  • GetCurrentQueryOptions()
    GetCurrentQueryOptions()
    GetCurrentQueryOptions()
    GetCurrentQueryOptions()

    Gets the current query options.

    public ContactQueryOptions GetCurrentQueryOptions()public ContactQueryOptions GetCurrentQueryOptions()Public Function GetCurrentQueryOptions() As ContactQueryOptionspublic ContactQueryOptions GetCurrentQueryOptions()

    Returns

Device family

Windows Mobile Extension SDK (introduced v10.0.10240.0)

API contract

Windows.Phone.PhoneContract (introduced v1)

Capabilities

ID_CAP_CONTACTS [Windows Phone]

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Phone.PersonalInformation.dll