ContactQueryResult ContactQueryResult ContactQueryResult ContactQueryResult Class

Represents the result of a contact query.

Syntax

Declaration

public sealed class ContactQueryResultpublic sealed class ContactQueryResultPublic NotInheritable 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 )

    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<StoredContact>> GetContactsAsync()public IAsyncOperation<StoredContact>> GetContactsAsync()Public Function GetContactsAsync() As IAsyncOperation( Of StoredContact )

    Returns

  • GetContactsAsync(System.UInt32,System.UInt32)
    GetContactsAsync(System.UInt32,System.UInt32)
    GetContactsAsync(System.UInt32,System.UInt32)
    GetContactsAsync(System.UInt32,System.UInt32)

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

    public IAsyncOperation<StoredContact>> GetContactsAsync(System.UInt32,System.UInt32)public IAsyncOperation<StoredContact>> GetContactsAsync(System.UInt32,System.UInt32)Public Function GetContactsAsync(System.UInt32,System.UInt32) As IAsyncOperation( Of StoredContact )

    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 ContactQueryOptions

    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