InternalBindToFolders method
Future<ServiceResponseCollection<GetFolderResponse> >
InternalBindToFolders(
- Iterable<
FolderId?> folderIds, - PropertySet propertySet,
- ServiceErrorHandling errorHandling
Implementation
//ServiceResponseCollection<GetFolderResponse> BindToFolders(
// Iterable<FolderId> folderIds,
// PropertySet propertySet)
// {
// EwsUtilities.ValidateParamCollection(folderIds, "folderIds");
// EwsUtilities.ValidateParam(propertySet, "propertySet");
//
// return this.InternalBindToFolders(
// folderIds,
// propertySet,
// ServiceErrorHandling.ReturnErrors
// );
// }
/// <summary>
/// Binds to multiple folders in a single call to EWS.
/// </summary>
/// <param name="folderIds">The Ids of the folders to bind to.</param>
/// <param name="propertySet">The set of properties to load.</param>
/// <param name="errorHandling">Type of error handling to perform.</param>
/// <returns>A ServiceResponseCollection providing results for each of the specified folder Ids.</returns>
Future<ServiceResponseCollection<GetFolderResponse>> InternalBindToFolders(
Iterable<FolderId?> folderIds,
PropertySet propertySet,
ServiceErrorHandling errorHandling) async {
GetFolderRequest request = new GetFolderRequest(this, errorHandling);
request.FolderIds.AddRangeFolderIds(folderIds);
request.PropertySet = propertySet;
return await request.Execute();
}