Aspose::Email::LinkedResourceCollection Class Referencefinal

Represents a collection of LinkedResource objects More...

Inherits System::Collections::ObjectModel::Collection< System::SharedPtr< Aspose::Email::LinkedResource > >.

Public Member Functions

 LinkedResourceCollection ()
 
void Dispose ()
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More...
 
void RemoveAt (int32_t index, bool removeHtmlLink)
 Removes the element at the specified index from this collection. More...
 
bool Remove (const System::SharedPtr< LinkedResource > &item) override
 Removes the first occurrence of a LinkedResource object from the LinkedResourceCollection. More...
 
void Clear (bool removeHtmlLinks)
 Removes all elements from this collection. More...
 
bool ContainsId (System::String contentId)
 
void SetTemplateWeakPtr (uint32_t argument) override
 

Public Attributes

System::EventHandler< System::SharedPtr< LinkedResourceRemovedEventArgs > > LinkedResourceRemoved
 
System::EventHandler LinkedResourceCollectionChanged
 

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< LinkedResource > &item) override
 Replaces the element at the specified index. More...
 
void InsertItem (int32_t index, const System::SharedPtr< LinkedResource > &item) override
 Inserts an element into the T:System::Collections::ObjectModel::Collection`1 at the specified index. More...
 
virtual ~LinkedResourceCollection ()
 

Friends

class Aspose::Email::AlternateView
 
class Aspose::Email::AlternateViewCollection
 
class Aspose::Email::MailMessage
 
class Aspose::Email::Mapi::MailMessageInterpretor
 
class Aspose::Email::ReadOnlyMailMessage
 

Detailed Description

Represents a collection of LinkedResource objects

Constructor & Destructor Documentation

◆ LinkedResourceCollection()

Aspose::Email::LinkedResourceCollection::LinkedResourceCollection ( )

◆ ~LinkedResourceCollection()

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

Member Function Documentation

◆ Clear()

void Aspose::Email::LinkedResourceCollection::Clear ( bool  removeHtmlLinks)

Removes all elements from this collection.

Parameters
removeHtmlLinksDefines need remove links from html body or not.

◆ ClearItems()

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

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

◆ ContainsId()

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

◆ Dispose()

void Aspose::Email::LinkedResourceCollection::Dispose ( )

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

◆ InsertItem()

void Aspose::Email::LinkedResourceCollection::InsertItem ( int32_t  index,
const System::SharedPtr< LinkedResource > &  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.

◆ Remove()

bool Aspose::Email::LinkedResourceCollection::Remove ( const System::SharedPtr< LinkedResource > &  item)
override

Removes the first occurrence of a LinkedResource object from the LinkedResourceCollection.

Parameters
itemThe LinkedResource to remove.
Returns
true if item is successfully removed; otherwise, false.

◆ RemoveAt()

void Aspose::Email::LinkedResourceCollection::RemoveAt ( int32_t  index,
bool  removeHtmlLink 
)

Removes the element at the specified index from this collection.

Parameters
indexThe zero-based index of the element to remove.
removeHtmlLinkDefines need remove link from html body or not.

◆ RemoveItem()

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

Friends And Related Function Documentation

◆ Aspose::Email::AlternateView

friend class Aspose::Email::AlternateView
friend

◆ Aspose::Email::AlternateViewCollection

◆ Aspose::Email::MailMessage

friend class Aspose::Email::MailMessage
friend

◆ Aspose::Email::Mapi::MailMessageInterpretor

friend class Aspose::Email::Mapi::MailMessageInterpretor
friend

◆ Aspose::Email::ReadOnlyMailMessage

friend class Aspose::Email::ReadOnlyMailMessage
friend

Member Data Documentation

◆ LinkedResourceCollectionChanged

System::EventHandler Aspose::Email::LinkedResourceCollection::LinkedResourceCollectionChanged

◆ LinkedResourceRemoved

System::EventHandler<System::SharedPtr<LinkedResourceRemovedEventArgs> > Aspose::Email::LinkedResourceCollection::LinkedResourceRemoved