ResolveName method
Future<NameResolutionCollection>
ResolveName(
- String? nameToResolve,
- Iterable<
FolderId> ? parentFolderIds, - ResolveNameSearchLocation searchScope,
- bool returnContactDetails,
- PropertySet? contactDataPropertySet,
Implementation
Future<NameResolutionCollection> ResolveName(
String? nameToResolve,
Iterable<FolderId>? parentFolderIds,
ResolveNameSearchLocation searchScope,
bool returnContactDetails,
PropertySet? contactDataPropertySet) async {
if (contactDataPropertySet != null) {
EwsUtilities.ValidateMethodVersion(
this, ExchangeVersion.Exchange2010_SP1, "ResolveName");
}
EwsUtilities.ValidateParam(nameToResolve, "nameToResolve");
if (parentFolderIds != null) {
EwsUtilities.ValidateParamCollection(parentFolderIds, "parentFolderIds");
}
ResolveNamesRequest request = new ResolveNamesRequest(this);
request.NameToResolve = nameToResolve;
request.ReturnFullContactData = returnContactDetails;
request.ParentFolderIds.AddRangeFolderIds(parentFolderIds);
request.SearchLocation = searchScope;
request.ContactDataPropertySet = contactDataPropertySet;
return (await request.Execute())[0].Resolutions;
}