This topic has not yet been rated - Rate this topic

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

EWS Managed API

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
)

Parameters

nameToResolve
Type: System.String
The name to be resolved.
parentFolderIds
Type: System.Collections.Generic.IEnumerable<FolderId>
The IDs of the contact folders to be searched for matching contacts.
searchScope
Type: Microsoft.Exchange.WebServices.Data.ResolveNameSearchLocation
The scope of the search.
returnContactDetails
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).

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.