ContactReader ContactReader ContactReader ContactReader Class

Definition

Used to read Contact objects in batches from the ContactStore which may be local or remotely located.

public : sealed class ContactReader : IContactReader
public sealed class ContactReader : IContactReader
Public NotInheritable Class ContactReader Implements IContactReader
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

Remarks

Use GetContactReader or GetContactReader(ContactQueryOptions) to get an instance of this class.

Methods

GetMatchingPropertiesWithMatchReason(Contact) GetMatchingPropertiesWithMatchReason(Contact) GetMatchingPropertiesWithMatchReason(Contact) GetMatchingPropertiesWithMatchReason(Contact)

Gets the reason a Contact matched the search query. Returns the properties and substrings that match.

public : IVectorView<ContactMatchReason> GetMatchingPropertiesWithMatchReason(Contact contact)
public IReadOnlyList<ContactMatchReason> GetMatchingPropertiesWithMatchReason(Contact contact)
Public Function GetMatchingPropertiesWithMatchReason(contact As Contact) As IReadOnlyList<ContactMatchReason>( Of ContactMatchReason )
var iVectorView = contactReader.getMatchingPropertiesWithMatchReason(contact);
Parameters
contact
Contact Contact Contact Contact

The Contact for which to get the matching properties.

Returns
IVectorView<ContactMatchReason> IReadOnlyList<ContactMatchReason> IReadOnlyList<ContactMatchReason> IReadOnlyList<ContactMatchReason>

The list of matching properties and match reasons.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

Remarks

These results can be used for hit highlighting.

ReadBatchAsync() ReadBatchAsync() ReadBatchAsync() ReadBatchAsync()

Asynchronously reads a batch of Contact objects from the ContactStore.

public : IAsyncOperation<ContactBatch> ReadBatchAsync()
public IAsyncOperation<ContactBatch> ReadBatchAsync()
Public Function ReadBatchAsync() As IAsyncOperation( Of ContactBatch )
Windows.ApplicationModel.Contacts.ContactReader.readBatchAsync().done( /* Your success and error handlers */ );
Returns
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem