ContactMatchReason ContactMatchReason ContactMatchReason ContactMatchReason Class

Definition

Provides details about why search results matched the query parameters.

public : sealed class ContactMatchReason : IContactMatchReasonpublic sealed class ContactMatchReason : IContactMatchReasonPublic NotInheritable Class ContactMatchReason Implements IContactMatchReason// 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

Call ContactReader.GetMatchingPropertiesWithMatchReason to get an instance of this class.

Properties

Field Field Field Field

Gets the contact field type that matched the search, such as name, phone number, email address and so on.

public : ContactMatchReasonKind Field { get; }public ContactMatchReasonKind Field { get; }Public ReadOnly Property Field As ContactMatchReasonKind// You can use this property in JavaScript.
Value
ContactMatchReasonKind ContactMatchReasonKind ContactMatchReasonKind ContactMatchReasonKind

The contact field type that matched the search, such as name, phone number, email address and so on.

Segments Segments Segments Segments

Gets a list of matching TextSegment objects which tells you what to highlight in your view as the result of a contact search.

public : IVectorView<TextSegment> Segments { get; }public IReadOnlyList<TextSegment> Segments { get; }Public ReadOnly Property Segments As IReadOnlyList<TextSegment>// You can use this property in JavaScript.
Value
IVectorView<TextSegment> IReadOnlyList<TextSegment> IReadOnlyList<TextSegment> IReadOnlyList<TextSegment>

The list of matching TextSegment objects.

Text Text Text Text

Gets the matching text result from a contact search.

public : PlatForm::String Text { get; }public string Text { get; }Public ReadOnly Property Text As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The matching text result from a contact search.