Aspose::Email::AlternateViewCollection Class Referencefinal

Represents a collection of AlternateView objects. More...

Inherits System::Collections::ObjectModel::Collection< System::SharedPtr< Aspose::Email::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< AlternateViewGetView (System::String mediaType)
 
void SetTemplateWeakPtr (uint32_t argument) override
 

Public Attributes

System::EventHandler AlternateViewAdded
 
System::EventHandler AlternateViewCollectionCleared
 
System::EventHandler< System::SharedPtr< AlternateViewRemovedEventArgs > > AlternateViewRemoved
 
System::EventHandler< System::SharedPtr< 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 ()
 

Friends

class Aspose::Email::Amp::AmpMessage
 
class Aspose::Email::MailMessage
 
class Aspose::Email::Storage::Zimbra::TgzReader
 

Detailed Description

Represents a collection of AlternateView objects.

Constructor & Destructor Documentation

◆ AlternateViewCollection()

Aspose::Email::AlternateViewCollection::AlternateViewCollection ( )

◆ ~AlternateViewCollection()

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

Member Function Documentation

◆ ClearItems()

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

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

◆ ContainsView()

bool Aspose::Email::AlternateViewCollection::ContainsView ( System::String  mediaType)

◆ Dispose()

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

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

◆ GetView()

System::SharedPtr<AlternateView> Aspose::Email::AlternateViewCollection::GetView ( System::String  mediaType)

◆ InsertItem()

void Aspose::Email::AlternateViewCollection::InsertItem ( int32_t  index,
const System::SharedPtr< AlternateView > &  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::AlternateViewCollection::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::AlternateViewCollection::SetItem ( int32_t  index,
const System::SharedPtr< AlternateView > &  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::AlternateViewCollection::SetTemplateWeakPtr ( uint32_t  argument)
override

Friends And Related Function Documentation

◆ Aspose::Email::Amp::AmpMessage

friend class Aspose::Email::Amp::AmpMessage
friend

◆ Aspose::Email::MailMessage

friend class Aspose::Email::MailMessage
friend

◆ Aspose::Email::Storage::Zimbra::TgzReader

Member Data Documentation

◆ AlternateViewAdded

System::EventHandler Aspose::Email::AlternateViewCollection::AlternateViewAdded

◆ AlternateViewCollectionCleared

System::EventHandler Aspose::Email::AlternateViewCollection::AlternateViewCollectionCleared

◆ AlternateViewLinkedResourceRemoved

System::EventHandler<System::SharedPtr<LinkedResourceRemovedEventArgs> > Aspose::Email::AlternateViewCollection::AlternateViewLinkedResourceRemoved

◆ AlternateViewRemoved

System::EventHandler<System::SharedPtr<AlternateViewRemovedEventArgs> > Aspose::Email::AlternateViewCollection::AlternateViewRemoved