ImapFolderInfoCollection

Inheritance: java.lang.Object, com.aspose.ms.System.Collections.ObjectModel.Collection, com.aspose.email.ImapFolderInfoCollectionBase

All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericList, com.aspose.ms.System.Collections.Generic.IGenericCollection, com.aspose.ms.System.Collections.Generic.IGenericEnumerable

public final class ImapFolderInfoCollection extends ImapFolderInfoCollectionBase implements System.Collections.Generic.IGenericList<ImapFolderInfo>, System.Collections.Generic.IGenericCollection<ImapFolderInfo>, System.Collections.Generic.IGenericEnumerable<ImapFolderInfo>

Provides a container for a collection of ImapFolderInfo objects.

Constructors

Constructor Description
ImapFolderInfoCollection() Initializes a new instance of the ImapFolderInfoCollection class.
ImapFolderInfoCollection(ImapFolderInfo[] folders) Initializes a new instance of the ImapFolderInfoCollection class.

Methods

Method Description
addRange(System.Collections.Generic.IGenericEnumerable folders) Adds the ImapFolderInfo to the ImapFolderInfoCollection.
add(ImapFolderInfo item) Adds the ImapFolderInfo to the ImapFolderInfoCollection.
removeAt(int index) Remove a folder info at specified index.
getSyncRoot() Gets an object that can be used to synchronize access to the collection.

ImapFolderInfoCollection()

public ImapFolderInfoCollection()

Initializes a new instance of the ImapFolderInfoCollection class.

ImapFolderInfoCollection(ImapFolderInfo[] folders)

public ImapFolderInfoCollection(ImapFolderInfo[] folders)

Initializes a new instance of the ImapFolderInfoCollection class.

Parameters:

Parameter Type Description
folders com.aspose.email.ImapFolderInfo[] Initial folders

addRange(System.Collections.Generic.IGenericEnumerable folders)

public final void addRange(System.Collections.Generic.IGenericEnumerable<ImapFolderInfo> folders)

Adds the ImapFolderInfo to the ImapFolderInfoCollection.

Parameters:

Parameter Type Description
folders com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.email.ImapFolderInfo> The ImapFolderInfo objects.

add(ImapFolderInfo item)

public final void add(ImapFolderInfo item)

Adds the ImapFolderInfo to the ImapFolderInfoCollection.

Parameters:

Parameter Type Description
item ImapFolderInfo The ImapFolderInfo object.

removeAt(int index)

public final void removeAt(int index)

Remove a folder info at specified index.

Parameters:

Parameter Type Description
index int The zero-based index of the ImapFolderInfo to remove.

getSyncRoot()

public final Object getSyncRoot()

Gets an object that can be used to synchronize access to the collection.

Returns: java.lang.Object