Aspose::Email::AttachmentCollection Class Referencefinal

Represents a collection of e-mail message attachments. More...

Inherits System::Collections::ObjectModel::Collection< System::SharedPtr< Attachment > >, and IDisposable.

Public Member Functions

int32_t get_ReferenceCount ()
 
 AttachmentCollection ()
 
void Dispose () override
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More...
 
System::String GetNames ()
 Gets the attachment names separated with comma. More...
 
void SetTemplateWeakPtr (uint32_t argument) override
 

Public Attributes

System::EventHandler AttachmentCollectionChanged
 

Protected Member Functions

void RemoveItem (int32_t index) override
 Removes the element at the specified index of the T:System::Collections::ObjectModel::Collection`1. More...
 
void ClearItems () override
 Removes all elements from the T:System::Collections::ObjectModel::Collection`1. More...
 
void SetItem (int32_t index, const System::SharedPtr< Attachment > &item) override
 Replaces the element at the specified index. More...
 
void InsertItem (int32_t index, const System::SharedPtr< Attachment > &item) override
 Inserts an element into the T:System::Collections::ObjectModel::Collection`1 at the specified index. More...
 
virtual ~AttachmentCollection ()
 

Detailed Description

Represents a collection of e-mail message attachments.

Constructor & Destructor Documentation

◆ AttachmentCollection()

Aspose::Email::AttachmentCollection::AttachmentCollection ( )

◆ ~AttachmentCollection()

virtual Aspose::Email::AttachmentCollection::~AttachmentCollection ( )
protectedvirtual

Member Function Documentation

◆ ClearItems()

void Aspose::Email::AttachmentCollection::ClearItems ( )
overrideprotected

Removes all elements from the T:System::Collections::ObjectModel::Collection`1.

◆ Dispose()

void Aspose::Email::AttachmentCollection::Dispose ( )
override

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

◆ get_ReferenceCount()

int32_t Aspose::Email::AttachmentCollection::get_ReferenceCount ( )

◆ GetNames()

System::String Aspose::Email::AttachmentCollection::GetNames ( )

Gets the attachment names separated with comma.

Returns

◆ InsertItem()

void Aspose::Email::AttachmentCollection::InsertItem ( int32_t  index,
const System::SharedPtr< Attachment > &  item 
)
overrideprotected

Inserts an element into the T:System::Collections::ObjectModel::Collection`1 at the specified index.

Parameters
indexThe zero-based index at which item should be inserted.
itemThe object to insert. The value can be null for reference types.
Exceptions
T:System::ArgumentOutOfRangeExceptionindex is less than zero. -or- index is greater than P:System::Collections::ObjectModel::Collection`1::Count.

◆ RemoveItem()

void Aspose::Email::AttachmentCollection::RemoveItem ( int32_t  index)
overrideprotected

Removes the element at the specified index of the T:System::Collections::ObjectModel::Collection`1.

Parameters
indexThe zero-based index of the element to remove.
Exceptions
T:System::ArgumentOutOfRangeExceptionindex is less than zero. -or- index is equal to or greater than P:System::Collections::ObjectModel::Collection`1::Count.

◆ SetItem()

void Aspose::Email::AttachmentCollection::SetItem ( int32_t  index,
const System::SharedPtr< Attachment > &  item 
)
overrideprotected

Replaces the element at the specified index.

Parameters
indexThe zero-based index of the element to replace.
itemThe new value for the element at the specified index. The value can be null for reference types.
Exceptions
T:System::ArgumentOutOfRangeExceptionindex is less than zero. -or- index is greater than P:System::Collections::ObjectModel::Collection`1::Count.

◆ SetTemplateWeakPtr()

void Aspose::Email::AttachmentCollection::SetTemplateWeakPtr ( uint32_t  argument)
override

Member Data Documentation

◆ AttachmentCollectionChanged

System::EventHandler Aspose::Email::AttachmentCollection::AttachmentCollectionChanged