BuildSyncFolderItemsRequest method

SyncFolderItemsRequest BuildSyncFolderItemsRequest(
  1. FolderId? syncFolderId,
  2. PropertySet propertySet,
  3. Iterable<ItemId>? ignoredItemIds,
  4. int maxChangesReturned,
  5. int numberOfDays,
  6. SyncFolderItemsScope syncScope,
  7. String? syncState,
)
Builds a request to synchronize the items of a specific folder. The Id of the folder containing the items to synchronize with. The set of properties to retrieve for synchronized items. The optional list of item Ids that should be ignored. The maximum number of changes that should be returned. Limit the changes returned to this many days ago; 0 means no limit. The sync scope identifying items to include in the ChangeCollection. The optional sync state representing the point in time when to start the synchronization.

Implementation

SyncFolderItemsRequest BuildSyncFolderItemsRequest(
  FolderId? syncFolderId,
  PropertySet propertySet,
  Iterable<ItemId>? ignoredItemIds,
  int maxChangesReturned,
  int numberOfDays,
  SyncFolderItemsScope syncScope,
  String? syncState,
) {
  EwsUtilities.ValidateParam(syncFolderId, "syncFolderId");
  EwsUtilities.ValidateParam(propertySet, "propertySet");

  SyncFolderItemsRequest request = SyncFolderItemsRequest(this);

  request.SyncFolderId = syncFolderId;
  request.PropertySet = propertySet;
  if (ignoredItemIds != null) {
    request.IgnoredItemIds.AddRangeItemIds(ignoredItemIds);
  }
  request.MaxChangesReturned = maxChangesReturned;
  request.NumberOfDays = numberOfDays;
  request.SyncScope = syncScope;
  request.SyncState = syncState;

  return request;
}