In The Hand LtdIn The Hand
FindMatchingContact Method (query, flags)
NamespacesInTheHand.WindowsMobile.PocketOutlookOutlookSessionFindMatchingContact(String, FindMatchingContactFlags)
.NET Components for Mobility
Returns the Contact item with a property value that most closely matches a search string.
Declaration Syntax
C#Visual Basic
public Contact FindMatchingContact(
	string query,
	FindMatchingContactFlags flags
)
Public Function FindMatchingContact ( _
	query As String, _
	flags As FindMatchingContactFlags _
) As Contact
Parameters
query (String)
The search string.
flags (FindMatchingContactFlags)
Flags that indicates which Contact properties to search.
Return Value
The most closely matching Contact item.
Remarks
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

Assembly: InTheHand.WindowsMobile.PocketOutlook (Module: InTheHand.WindowsMobile.PocketOutlook) Version: 7.0.0.0