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 () |
Represents a collection of e-mail message attachments.
Aspose::Email::AttachmentCollection::AttachmentCollection | ( | ) |
|
protectedvirtual |
|
overrideprotected |
Removes all elements from the T:System::Collections::ObjectModel::Collection`1.
bool Aspose::Email::AttachmentCollection::ContainsId | ( | System::String | contentId | ) |
|
override |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
int32_t Aspose::Email::AttachmentCollection::get_ReferenceCount | ( | ) |
System::String Aspose::Email::AttachmentCollection::GetNames | ( | ) |
Gets the attachment names separated with comma.
|
overrideprotected |
Inserts an element into the T:System::Collections::ObjectModel::Collection`1 at the specified index.
index | The zero-based index at which item should be inserted. |
item | The object to insert. The value can be null for reference types. |
T:System::ArgumentOutOfRangeException | index is less than zero. -or- index is greater than P:System::Collections::ObjectModel::Collection`1::Count. |
void Aspose::Email::AttachmentCollection::RemoveById | ( | System::String | contentId | ) |
|
overrideprotected |
Removes the element at the specified index of the T:System::Collections::ObjectModel::Collection`1.
index | The zero-based index of the element to remove. |
T:System::ArgumentOutOfRangeException | index is less than zero. -or- index is equal to or greater than P:System::Collections::ObjectModel::Collection`1::Count. |
|
overrideprotected |
Replaces the element at the specified index.
index | The zero-based index of the element to replace. |
item | The new value for the element at the specified index. The value can be null for reference types. |
T:System::ArgumentOutOfRangeException | index is less than zero. -or- index is greater than P:System::Collections::ObjectModel::Collection`1::Count. |
|
override |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
System::EventHandler Aspose::Email::AttachmentCollection::AttachmentCollectionChanged |