BuildSyncFolderHierarchyRequest method

Future<SyncFolderHierarchyRequest> BuildSyncFolderHierarchyRequest(
  1. FolderId? syncFolderId,
  2. PropertySet propertySet,
  3. String? syncState
)
Builds a request to synchronize the specified folder hierarchy of the mailbox this Service is connected to. The Id of the folder containing the items to synchronize with. A null value indicates the root folder of the mailbox. The set of properties to retrieve for synchronized items. The optional sync state representing the point in time when to start the synchronization.

Implementation

Future<SyncFolderHierarchyRequest> BuildSyncFolderHierarchyRequest(
  FolderId? syncFolderId,
  PropertySet propertySet,
  String? syncState,
) async {
  EwsUtilities.ValidateParamAllowNull(
    syncFolderId,
    "syncFolderId",
  ); // Null syncFolderId is allowed
  EwsUtilities.ValidateParam(propertySet, "propertySet");

  SyncFolderHierarchyRequest request = SyncFolderHierarchyRequest(this);

  request.PropertySet = propertySet;
  request.SyncFolderId = syncFolderId;
  request.SyncState = syncState;

  return request;
}