FindItems method

Future<GroupedFindItemsResults<Item>?> FindItems(
  1. WellKnownFolderName parentFolderName,
  2. String queryString,
  3. ViewBase view,
  4. Grouping groupBy,
)
Obtains a grouped list of items by searching the contents of a specific folder. Calling this method results in a call to EWS. The name of the folder in which to search for items. query string to be used for indexed search The view controlling the number of items returned. The group by clause.

Implementation

Future<GroupedFindItemsResults<Item>?> FindItems(
  WellKnownFolderName parentFolderName,
  String queryString,
  ViewBase view,
  Grouping groupBy,
) {
  EwsUtilities.ValidateParam(groupBy, "groupBy");

  return FindItemsWithFolderIdAndQueryAndViewAndGrouping(
    FolderId.fromWellKnownFolder(parentFolderName),
    queryString,
    view,
    groupBy,
  );
}