LoadPropertiesForFolder method

Future<void> LoadPropertiesForFolder(
  1. Folder folder,
  2. PropertySet propertySet
)
Obtains a list of folders by searching the sub-folders of the specified folder. The name of the folder in which to search for folders. The view controlling the number of folders returned. Load specified properties for a folder. The folder. The property set.

Implementation

//FindFoldersResults FindFolders(WellKnownFolderName parentFolderName, FolderView view)
//        {
//            return this.FindFolders(new FolderId(parentFolderName), view);
//        }

/// <summary>
/// Load specified properties for a folder.
/// </summary>
/// <param name="folder">The folder.</param>
/// <param name="propertySet">The property set.</param>
Future<void> LoadPropertiesForFolder(Folder folder, PropertySet propertySet) {
  EwsUtilities.ValidateParam(folder, "folder");
  EwsUtilities.ValidateParam(propertySet, "propertySet");

  GetFolderRequestForLoad request =
      new GetFolderRequestForLoad(this, ServiceErrorHandling.ThrowOnError);

  request.FolderIds.Add(folder);
  request.PropertySet = propertySet;

  return request.Execute();
}