ExchangeService.ResolveName method (String, IEnumerable<FolderId>, ResolveNameSearchLocation, Boolean)

Finds contacts in specified contact folders and/or the Global Address List (GAL) that have names matching the name that was passed as a parameter.

Namespace:  Microsoft.Exchange.WebServices.Data
Assembly:  Microsoft.Exchange.WebServices (in Microsoft.Exchange.WebServices.dll)

public NameResolutionCollection ResolveName(
	string nameToResolve,
	IEnumerable<FolderId> parentFolderIds,
	ResolveNameSearchLocation searchScope,
	bool returnContactDetails


Type: System.String

The name to be resolved.

Type: System.Collections.Generic.IEnumerable<FolderId>

The IDs of the contact folders to be searched for matching contacts.

Type: Microsoft.Exchange.WebServices.Data.ResolveNameSearchLocation

The scope of the search.

Type: System.Boolean

true to return for each of the contacts found in the search; otherwise, false.

Return value

Type: Microsoft.Exchange.WebServices.Data.NameResolutionCollection
A collection of name resolutions whose names match the one that was passed as a parameter.

Calling this method results in a call to Exchange Web Services (EWS).