AddWithFolderId method

void AddWithFolderId(
  1. FolderId folderId
)
Adds a folder Id to the collection. The folder Id to add.

Implementation

void AddWithFolderId(FolderId folderId) {
  EwsUtilities.ValidateParam(folderId, "folderId");

  if (this.Contains(folderId)) {
    throw new ArgumentException("""Strings.IdAlreadyInList, "folderId""" "");
  }

  this.InternalAdd(folderId);
}