Class FolderIdCollection

    • Method Detail

      • add

        public void add​(FolderId folderId)
                 throws Exception
        Adds a folder Id to the collection.
        Parameters:
        folderId - The folder Id to add.
        Throws:
        Exception - the exception
      • add

        public FolderId add​(WellKnownFolderName folderName)
        Adds a well-known folder to the collection.
        Parameters:
        folderName - the folder name
        Returns:
        A FolderId encapsulating the specified Id.
      • clear

        public void clear()
        Clears the collection.
      • removeAt

        public void removeAt​(int index)
        Removes the folder Id at the specified index.
        Parameters:
        index - The zero-based index of the folder Id to remove.
      • remove

        public boolean remove​(FolderId folderId)
                       throws Exception
        Removes the specified folder Id from the collection.
        Parameters:
        folderId - The folder Id to remove from the collection.
        Returns:
        True if the folder id was successfully removed from the collection, false otherwise.
        Throws:
        Exception - the exception
      • remove

        public boolean remove​(WellKnownFolderName folderName)
        Removes the specified well-known folder from the collection.
        Parameters:
        folderName - The well-knwon folder to remove from the collection.
        Returns:
        True if the well-known folder was successfully removed from the collection, false otherwise.