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 : IContactReaderpublic sealed class ContactReader : IContactReaderPublic NotInheritable Class ContactReader Implements IContactReader// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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( Of ContactMatchReason )// You can use this method in JavaScript.
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.

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 )// You can use this method in JavaScript.
Returns