Represents a collection of AlternateView objects. More...
Inherits System::Collections::ObjectModel::Collection< System::SharedPtr< AlternateView > >, and IDisposable.
Public Member Functions | |
| AlternateViewCollection () | |
| void | Dispose () override |
| Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
| bool | ContainsView (System::String mediaType) |
| System::SharedPtr< AlternateView > | GetView (System::String mediaType) |
| void | SetTemplateWeakPtr (uint32_t argument) override |
Public Attributes | |
| System::EventHandler | AlternateViewAdded |
| System::EventHandler | AlternateViewCollectionCleared |
| System::EventHandler< System::SharedPtr< Aspose::Email::AlternateViewRemovedEventArgs > > | AlternateViewRemoved |
| System::EventHandler< System::SharedPtr< Aspose::Email::LinkedResourceRemovedEventArgs > > | AlternateViewLinkedResourceRemoved |
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< AlternateView > &item) override |
| Replaces the element at the specified index. More... | |
| void | InsertItem (int32_t index, const System::SharedPtr< AlternateView > &item) override |
| Inserts an element into the T:System::Collections::ObjectModel::Collection`1 at the specified index. More... | |
| virtual | ~AlternateViewCollection () |
Represents a collection of AlternateView objects.
| Aspose::Email::AlternateViewCollection::AlternateViewCollection | ( | ) |
|
protectedvirtual |
|
overrideprotected |
Removes all elements from the T:System::Collections::ObjectModel::Collection`1.
| bool Aspose::Email::AlternateViewCollection::ContainsView | ( | System::String | mediaType | ) |
|
override |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
| System::SharedPtr<AlternateView> Aspose::Email::AlternateViewCollection::GetView | ( | System::String | mediaType | ) |
|
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. |
|
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 |
| System::EventHandler Aspose::Email::AlternateViewCollection::AlternateViewAdded |
| System::EventHandler Aspose::Email::AlternateViewCollection::AlternateViewCollectionCleared |
| System::EventHandler<System::SharedPtr<Aspose::Email::LinkedResourceRemovedEventArgs> > Aspose::Email::AlternateViewCollection::AlternateViewLinkedResourceRemoved |
| System::EventHandler<System::SharedPtr<Aspose::Email::AlternateViewRemovedEventArgs> > Aspose::Email::AlternateViewCollection::AlternateViewRemoved |