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 (Contains(folderId)) {
    throw ArgumentException(
      """Strings.IdAlreadyInList, "folderId"""
      "",
    );
  }

  InternalAdd(folderId);
}