Aspose::Email::Clients::Imap::ImapMessageInfoCollection Class Referencefinal

Provides a container for a collection of ImapMessageInfo objects More...

Inherits System::Collections::ObjectModel::Collection< System::SharedPtr< Aspose::Email::Clients::Imap::ImapMessageInfo > >.

Public Member Functions

System::SharedPtr< System::Object > get_SyncRoot () const
 Converts list of ImapMessageInfo to collection More...
 
System::SharedPtr< System::Collections::Generic::IList< ElementProcessingException > > get_Exceptions () const
 Gets collection of exceptions, that occurred during message processing. More...
 
 ImapMessageInfoCollection ()
 Initializes a new instance of the ImapMessageCollection class. More...
 
 ImapMessageInfoCollection (System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< ImapMessageInfo >>> messageInfoEn)
 Initializes a new instance of the ImapMessageCollection class More...
 
void Add (const System::SharedPtr< ImapMessageInfo > &item) override
 Adds the ImapMessageInfo to the ImapMessageCollection. More...
 
void AddRange (System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< ImapMessageInfo >>> messageInfos)
 Adds the enumeration of ImapMessageInfo objects to the end of the collection More...
 
bool Remove (const System::SharedPtr< ImapMessageInfo > &item) override
 Remove specifed ImapMessageInfo object from this collection. More...
 
void RemoveAt (int32_t index) override
 Remove a ImapMessageInfo in specified index from this collection. More...
 
void Insert (int32_t index, const System::SharedPtr< ImapMessageInfo > &item) override
 Insert the specified ImapMessagInfo object at the specified index. More...
 
System::SharedPtr< System::Collections::Generic::ListExt< System::SharedPtr< ImapMessageInfo > > > ToList ()
 
void SetTemplateWeakPtr (uint32_t argument) override
 

Protected Member Functions

virtual ~ImapMessageInfoCollection ()
 

Detailed Description

Provides a container for a collection of ImapMessageInfo objects

Constructor & Destructor Documentation

◆ ImapMessageInfoCollection() [1/2]

Aspose::Email::Clients::Imap::ImapMessageInfoCollection::ImapMessageInfoCollection ( )

Initializes a new instance of the ImapMessageCollection class.

◆ ImapMessageInfoCollection() [2/2]

Aspose::Email::Clients::Imap::ImapMessageInfoCollection::ImapMessageInfoCollection ( System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< ImapMessageInfo >>>  messageInfoEn)

Initializes a new instance of the ImapMessageCollection class

Parameters
messageInfoEninitial value

◆ ~ImapMessageInfoCollection()

virtual Aspose::Email::Clients::Imap::ImapMessageInfoCollection::~ImapMessageInfoCollection ( )
protectedvirtual

Member Function Documentation

◆ Add()

void Aspose::Email::Clients::Imap::ImapMessageInfoCollection::Add ( const System::SharedPtr< ImapMessageInfo > &  item)
override

Adds the ImapMessageInfo to the ImapMessageCollection.

Parameters
itemThe ImapMessageInfo to be added.

◆ AddRange()

void Aspose::Email::Clients::Imap::ImapMessageInfoCollection::AddRange ( System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< ImapMessageInfo >>>  messageInfos)

Adds the enumeration of ImapMessageInfo objects to the end of the collection

Parameters
messageInfos

◆ get_Exceptions()

System::SharedPtr<System::Collections::Generic::IList<ElementProcessingException> > Aspose::Email::Clients::Imap::ImapMessageInfoCollection::get_Exceptions ( ) const

Gets collection of exceptions, that occurred during message processing.

◆ get_SyncRoot()

System::SharedPtr<System::Object> Aspose::Email::Clients::Imap::ImapMessageInfoCollection::get_SyncRoot ( ) const

Converts list of ImapMessageInfo to collection

Parameters
messageInfoLstList of ImapMessageInfo to convert
Returns
Collection of ImapMessageInfo

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

◆ Insert()

void Aspose::Email::Clients::Imap::ImapMessageInfoCollection::Insert ( int32_t  index,
const System::SharedPtr< ImapMessageInfo > &  item 
)
override

Insert the specified ImapMessagInfo object at the specified index.

Parameters
indexThe index that the specified object will be inserted into.
itemThe ImapMessagInfo object to be inserted.

◆ Remove()

bool Aspose::Email::Clients::Imap::ImapMessageInfoCollection::Remove ( const System::SharedPtr< ImapMessageInfo > &  item)
override

Remove specifed ImapMessageInfo object from this collection.

Parameters
itemThe ImapMessageInfo object to be remove.
Returns
False if this collection doesn't contains specified object.True if removed successfully.

◆ RemoveAt()

void Aspose::Email::Clients::Imap::ImapMessageInfoCollection::RemoveAt ( int32_t  index)
override

Remove a ImapMessageInfo in specified index from this collection.

Parameters
indexThe index of the message to be remove.

◆ SetTemplateWeakPtr()

void Aspose::Email::Clients::Imap::ImapMessageInfoCollection::SetTemplateWeakPtr ( uint32_t  argument)
override

◆ ToList()

System::SharedPtr<System::Collections::Generic::ListExt<System::SharedPtr<ImapMessageInfo> > > Aspose::Email::Clients::Imap::ImapMessageInfoCollection::ToList ( )