Returns the Contact item with a property value that most closely matches a search string.
| C# | Visual Basic |
public Contact FindMatchingContact( string query, FindMatchingContactFlags flags )
Public Function FindMatchingContact ( _ query As String, _ flags As FindMatchingContactFlags _ ) As Contact
- query (String)
- The search string.
- flags (FindMatchingContactFlags)
- Flags that indicates which Contact properties to search.
The most closely matching Contact item.
The FindMatchingContact method returns a single Contact only, even if there are multiple matches.
In the case of multiple matches that are not exact matches, Outlook Mobile chooses the Contact item with the property value that matches the search string the closest. For example, a search string of "johnd@dogfood.exchange.woodgrovebank.com" would match a Contact with an e-mail address of "John Doe <johnd@woodgrovebank.com>". If another Contact had an e-mail of "Jonathon Doe <johnd@exchange.woodgrovebank.com>", that Contact would be considered a closer match because more of the e-mail address is contained in the search string. However, a Contact with the e-mail address "johnd@dogfood.exchange.woodgrovebank.ca.com" would not match because the domain path does not match.
| Platforms Supported | |
|---|---|
| Windows Mobile | Windows Mobile Version 5.0 and later |