Aspose::Email::AttachmentCollection Class Referencefinal

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

Inherits System::Collections::ObjectModel::Collection< System::SharedPtr< Aspose::Email::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...
 
bool ContainsId (System::String contentId)
 
void RemoveById (System::String contentId)
 
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 ()
 

Friends

class Aspose::Email::MailMessage
 
class Aspose::Email::Calendar::Appointment
 
class Aspose::Email::Calendar::Task
 
class Aspose::Email::Clients::Exchange::WebService::TaskEwsConverter
 
class Aspose::Email::Clients::Exchange::WebService::Implementation::FetchAttachment::EwsClientAttachmentFetch
 
class Aspose::Email::Mapi::AppointmentMailMessageInterpretor
 
class Aspose::Email::MhtMessageFormatter
 
class Aspose::Email::PersonalInfo::Contact
 
class Aspose::Email::ReadOnlyMailMessage
 
class Aspose::Email::Tools::ForwardMessageBuilder
 

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.

◆ ContainsId()

bool Aspose::Email::AttachmentCollection::ContainsId ( System::String  contentId)

◆ 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.

◆ RemoveById()

void Aspose::Email::AttachmentCollection::RemoveById ( System::String  contentId)

◆ 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

Friends And Related Function Documentation

◆ Aspose::Email::Calendar::Appointment

◆ Aspose::Email::Calendar::Task

friend class Aspose::Email::Calendar::Task
friend

◆ Aspose::Email::Clients::Exchange::WebService::Implementation::FetchAttachment::EwsClientAttachmentFetch

friend class Aspose::Email::Clients::Exchange::WebService::Implementation::FetchAttachment::EwsClientAttachmentFetch
friend

◆ Aspose::Email::Clients::Exchange::WebService::TaskEwsConverter

friend class Aspose::Email::Clients::Exchange::WebService::TaskEwsConverter
friend

◆ Aspose::Email::MailMessage

friend class Aspose::Email::MailMessage
friend

◆ Aspose::Email::Mapi::AppointmentMailMessageInterpretor

friend class Aspose::Email::Mapi::AppointmentMailMessageInterpretor
friend

◆ Aspose::Email::MhtMessageFormatter

friend class Aspose::Email::MhtMessageFormatter
friend

◆ Aspose::Email::PersonalInfo::Contact

◆ Aspose::Email::ReadOnlyMailMessage

friend class Aspose::Email::ReadOnlyMailMessage
friend

◆ Aspose::Email::Tools::ForwardMessageBuilder

Member Data Documentation

◆ AttachmentCollectionChanged

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