InternalBindToFolders method

Future<ServiceResponseCollection<GetFolderResponse>> InternalBindToFolders(
  1. Iterable<FolderId?> folderIds,
  2. PropertySet propertySet,
  3. ServiceErrorHandling errorHandling
)
Binds to multiple folders in a single call to EWS. The Ids of the folders to bind to. The set of properties to load. Type of error handling to perform.

Implementation

Future<ServiceResponseCollection<GetFolderResponse>> InternalBindToFolders(
  Iterable<FolderId?> folderIds,
  PropertySet propertySet,
  ServiceErrorHandling errorHandling,
) async {
  GetFolderRequest request = GetFolderRequest(this, errorHandling);

  request.FolderIds.AddRangeFolderIds(folderIds);
  request.PropertySet = propertySet;

  return await request.Execute();
}