FindFoldersWithWellKnownFolder method
Future<FindFoldersResults>
FindFoldersWithWellKnownFolder(
- WellKnownFolderName parentFolderName,
- SearchFilter? searchFilter,
- FolderView view
Implementation
//ServiceResponseCollection<FindFolderResponse> FindFolders(Iterable<FolderId> parentFolderIds, SearchFilter searchFilter, FolderView view)
// {
// EwsUtilities.ValidateParam(parentFolderIds, "parentFolderIds");
// EwsUtilities.ValidateParam(view, "view");
// EwsUtilities.ValidateParamAllowNull(searchFilter, "searchFilter");
//
// return this.InternalFindFolders(
// parentFolderIds,
// searchFilter,
// view,
// ServiceErrorHandling.ReturnErrors);
// }
/// <summary>
/// Obtains a list of folders by searching the sub-folders of the specified folder.
/// </summary>
/// <param name="parentFolderId">The Id of the folder in which to search for folders.</param>
/// <param name="view">The view controlling the number of folders returned.</param>
/// <returns>An object representing the results of the search operation.</returns>
//FindFoldersResults FindFolders(FolderId parentFolderId, FolderView view)
// {
// EwsUtilities.ValidateParam(parentFolderId, "parentFolderId");
// EwsUtilities.ValidateParam(view, "view");
//
// ServiceResponseCollection<FindFolderResponse> responses = this.InternalFindFolders(
// new FolderId[] { parentFolderId },
// null, /* searchFilter */
// view,
// ServiceErrorHandling.ThrowOnError);
//
// return responses[0].Results;
// }
/// <summary>
/// Obtains a list of folders by searching the sub-folders of the specified folder.
/// </summary>
/// <param name="parentFolderName">The name of the folder in which to search for folders.</param>
/// <param name="searchFilter">The search filter. Available search filter classes
/// include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and
/// SearchFilter.SearchFilterCollection</param>
/// <param name="view">The view controlling the number of folders returned.</param>
/// <returns>An object representing the results of the search operation.</returns>
Future<FindFoldersResults> FindFoldersWithWellKnownFolder(
WellKnownFolderName parentFolderName,
SearchFilter? searchFilter,
FolderView view) {
return this.FindFoldersWithFolderId(
new FolderId.fromWellKnownFolder(parentFolderName), searchFilter, view);
}