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.
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.NameResolutionCollectionA collection of name resolutions whose names match the one that was passed as a parameter.