ExchangeService.ResolveName method (String, ResolveNameSearchLocation, Boolean, PropertySet)

Finds contacts in the Global Address List (GAL) whose names match the specified name.

This method was introduced in the Exchange Web Services (EWS) Managed API 1.2.

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

public NameResolutionCollection ResolveName(
	string nameToResolve,
	ResolveNameSearchLocation searchScope,
	bool returnContactDetails,
	PropertySet contactDataPropertySet
)

Parameters

nameToResolve
Type: System.String

The name to be resolved.

searchScope
Type: Microsoft.Exchange.WebServices.Data.ResolveNameSearchLocation

The scope of the search.

returnContactDetails
Type: System.Boolean

true if full contact information is to be returned for each of the found contacts; otherwise, false.

contactDataPropertySet
Type: Microsoft.Exchange.WebServices.Data.PropertySet

The property set for the contact details.

Return value

Type: Microsoft.Exchange.WebServices.Data.NameResolutionCollection
A collection of name resolutions whose names match the specified name.

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

Show: