Represents a collection of MailAddress objects. More...

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

Public Member Functions

template<class... Args>
void CollectionChanged_add (const Args &... value)
 
template<class... Args>
void CollectionChanged_remove (const Args &... value)
 
System::SharedPtr< MailAddressCollectionCopy ()
 Copies this instance. More...
 
void Add (const System::SharedPtr< MailAddress > &address) override
 Add a MailAddress to the collection. More...
 
void Add (const System::String &addresses)
 Add a list of e-mail addresses to the collection. More...
 
void Add (System::String addresses, bool checkAddresses)
 Adds addresses to collection and optionally verifies these addresses More...
 
System::SharedPtr< MailAddressCollectionClone ()
 
void SetEncoding (System::SharedPtr< System::Text::Encoding > displayNameEnc)
 Sets encoding for all collection items More...
 
void ParseValue (System::ArrayPtr< System::String > addresses)
 
void ParseValue (System::String addresses)
 
void ParseValue (System::String addresses, bool checkAddresses)
 Parses the addresses and optionally checks parsed addresses More...
 
System::String ToEncodedString ()
 
void AddRange (System::SharedPtr< MailAddressCollection > addresses)
 Adds addresses to collection More...
 
void AddRange (System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailAddress >>> addresses)
 Adds addresses to collection More...
 
System::String ToAddressString ()
 
System::String ToOneAddressString ()
 
 MailAddressCollection ()
 
System::String ToString () const override
 Returns a System::String that represents this instance. More...
 
void SetTemplateWeakPtr (uint32_t argument) override
 

Static Public Member Functions

static System::SharedPtr< MailAddressCollectionto_MailAddressCollection (System::SharedPtr< MailAddress > address)
 
static System::SharedPtr< MailAddressCollectionto_MailAddressCollection (System::String addresses)
 

Protected Member Functions

void SetItem (int32_t index, const System::SharedPtr< MailAddress > &item) override
 Replaces the element at the specified index. More...
 
void InsertItem (int32_t index, const System::SharedPtr< MailAddress > &item) override
 Inserts an element into the T:System::Collections::ObjectModel::Collection`1 at the specified index. More...
 
void ClearItems () override
 Removes all elements from the System.Collections.ObjectModel.Collection`1. More...
 
void RemoveItem (int32_t index) override
 Removes the element at the specified index of the System.Collections.ObjectModel.Collection`1. More...
 
virtual ~MailAddressCollection ()
 

Friends

class Aspose::Email::MailMessage
 
class Aspose::Email::Tools::ContactConverter
 
class Aspose::Email::Clients::Exchange::WebService::Implementation::Messages::Fetch::Helpers::ParsedExtendedProperties
 
class Aspose::Email::Clients::Exchange::WebService::MessageTrackingReport
 
class Aspose::Email::Clients::Exchange::WebService::MessageTrackingReportInfo
 
class Aspose::Email::Clients::Graph::V1::Model::TLMailMessage
 
class Aspose::Email::Mime::HeaderCollection
 
class Aspose::Email::Mime::HeaderValueFactory
 
class Aspose::Email::Tools::ResponseMessageBuilder
 

Detailed Description

Represents a collection of MailAddress objects.

Constructor & Destructor Documentation

◆ MailAddressCollection()

Aspose::Email::MailAddressCollection::MailAddressCollection ( )

◆ ~MailAddressCollection()

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

Member Function Documentation

◆ Add() [1/3]

void Aspose::Email::MailAddressCollection::Add ( const System::SharedPtr< MailAddress > &  address)
override

Add a MailAddress to the collection.

Parameters
addressThe MailAddress

◆ Add() [2/3]

void Aspose::Email::MailAddressCollection::Add ( const System::String &  addresses)

Add a list of e-mail addresses to the collection.

Parameters
addressesAn address list. Addresses must be separated with a comma character.

◆ Add() [3/3]

void Aspose::Email::MailAddressCollection::Add ( System::String  addresses,
bool  checkAddresses 
)

Adds addresses to collection and optionally verifies these addresses

Parameters
addressesAn addresses to be added
checkAddressesIndicates whether the addreses should be checked

◆ AddRange() [1/2]

void Aspose::Email::MailAddressCollection::AddRange ( System::SharedPtr< MailAddressCollection addresses)

Adds addresses to collection

Parameters
addressesCollection of mail addresses

◆ AddRange() [2/2]

void Aspose::Email::MailAddressCollection::AddRange ( System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailAddress >>>  addresses)

Adds addresses to collection

Parameters
addressesEnumeration of mail addresses

◆ ClearItems()

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

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

◆ Clone()

System::SharedPtr<MailAddressCollection> Aspose::Email::MailAddressCollection::Clone ( )

◆ CollectionChanged_add()

template<class... Args>
void Aspose::Email::MailAddressCollection::CollectionChanged_add ( const Args &...  value)
inline

◆ CollectionChanged_remove()

template<class... Args>
void Aspose::Email::MailAddressCollection::CollectionChanged_remove ( const Args &...  value)
inline

◆ Copy()

System::SharedPtr<MailAddressCollection> Aspose::Email::MailAddressCollection::Copy ( )

Copies this instance.

Returns

◆ InsertItem()

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

◆ ParseValue() [1/3]

void Aspose::Email::MailAddressCollection::ParseValue ( System::ArrayPtr< System::String >  addresses)

◆ ParseValue() [2/3]

void Aspose::Email::MailAddressCollection::ParseValue ( System::String  addresses)

◆ ParseValue() [3/3]

void Aspose::Email::MailAddressCollection::ParseValue ( System::String  addresses,
bool  checkAddresses 
)

Parses the addresses and optionally checks parsed addresses

Parameters
addressesAn addresses to add
checkAddressesIndicates whether the addresses should be checked

◆ RemoveItem()

void Aspose::Email::MailAddressCollection::RemoveItem ( int32_t  index)
overrideprotected

Removes the element at the specified index of the System.Collections.ObjectModel.Collection`1.

Parameters
indexThe zero-based index of the element to remove.

◆ SetEncoding()

void Aspose::Email::MailAddressCollection::SetEncoding ( System::SharedPtr< System::Text::Encoding >  displayNameEnc)

Sets encoding for all collection items

Parameters
displayNameEnc

◆ SetItem()

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

◆ to_MailAddressCollection() [1/2]

static System::SharedPtr<MailAddressCollection> Aspose::Email::MailAddressCollection::to_MailAddressCollection ( System::SharedPtr< MailAddress address)
static

◆ to_MailAddressCollection() [2/2]

static System::SharedPtr<MailAddressCollection> Aspose::Email::MailAddressCollection::to_MailAddressCollection ( System::String  addresses)
static

◆ ToAddressString()

System::String Aspose::Email::MailAddressCollection::ToAddressString ( )

◆ ToEncodedString()

System::String Aspose::Email::MailAddressCollection::ToEncodedString ( )

◆ ToOneAddressString()

System::String Aspose::Email::MailAddressCollection::ToOneAddressString ( )

◆ ToString()

System::String Aspose::Email::MailAddressCollection::ToString ( ) const
override

Returns a System::String that represents this instance.

Returns
A System::String that represents this instance.

Friends And Related Function Documentation

◆ Aspose::Email::Clients::Exchange::WebService::Implementation::Messages::Fetch::Helpers::ParsedExtendedProperties

friend class Aspose::Email::Clients::Exchange::WebService::Implementation::Messages::Fetch::Helpers::ParsedExtendedProperties
friend

◆ Aspose::Email::Clients::Exchange::WebService::MessageTrackingReport

◆ Aspose::Email::Clients::Exchange::WebService::MessageTrackingReportInfo

◆ Aspose::Email::Clients::Graph::V1::Model::TLMailMessage

friend class Aspose::Email::Clients::Graph::V1::Model::TLMailMessage
friend

◆ Aspose::Email::MailMessage

friend class Aspose::Email::MailMessage
friend

◆ Aspose::Email::Mime::HeaderCollection

◆ Aspose::Email::Mime::HeaderValueFactory

friend class Aspose::Email::Mime::HeaderValueFactory
friend

◆ Aspose::Email::Tools::ContactConverter

friend class Aspose::Email::Tools::ContactConverter
friend

◆ Aspose::Email::Tools::ResponseMessageBuilder