MailAddressCollection

Inheritance: java.lang.Object, com.aspose.ms.System.Collections.ObjectModel.Collection

public class MailAddressCollection extends System.Collections.ObjectModel.Collection<MailAddress>

Represents a collection of MailAddress objects.

Constructors

Constructor Description
MailAddressCollection()

Methods

Method Description
to_MailAddressCollection(MailAddress address) Performs an implicit conversion from MailAddress to MailAddressCollection.
to_MailAddressCollection(String addresses) Performs an implicit conversion from String to MailAddressCollection.
copy() Copies this instance.
toString() Returns a String that represents this instance.
addMailAddress(MailAddress address) Add a MailAddress to the collection.
add(String addresses) Add a list of e-mail addresses to the collection.
addRange(MailAddressCollection addresses) Adds addresses to collection
addRange(Iterable addresses) Adds addresses to collection
insertItem(int index, MailAddress item) Inserts an element into the ``` System.Collections.ObjectModel.Collection`1 ``` at the specified index.
clear() Removes all elements from the Collection.
removeAt(int index) Removes the element at the specified index of the Collection.

MailAddressCollection()

public MailAddressCollection()

to_MailAddressCollection(MailAddress address)

public static MailAddressCollection to_MailAddressCollection(MailAddress address)

Performs an implicit conversion from MailAddress to MailAddressCollection.

Parameters:

Parameter Type Description
address MailAddress The address.

Returns: MailAddressCollection - The result of the conversion.

to_MailAddressCollection(String addresses)

public static MailAddressCollection to_MailAddressCollection(String addresses)

Performs an implicit conversion from String to MailAddressCollection.

Parameters:

Parameter Type Description
addresses java.lang.String The address list.

Returns: MailAddressCollection - The result of the conversion.

copy()

public final MailAddressCollection copy()

Copies this instance.

Returns: MailAddressCollection -

toString()

public String toString()

Returns a String that represents this instance.

Returns: java.lang.String - A String that represents this instance.

addMailAddress(MailAddress address)

public final void addMailAddress(MailAddress address)

Add a MailAddress to the collection.

Parameters:

Parameter Type Description
address MailAddress The MailAddress

add(String addresses)

public final void add(String addresses)

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

Parameters:

Parameter Type Description
addresses java.lang.String An address list. Addresses must be separated with a comma character.

addRange(MailAddressCollection addresses)

public final void addRange(MailAddressCollection addresses)

Adds addresses to collection

Parameters:

Parameter Type Description
addresses MailAddressCollection Collection of mail addresses

addRange(Iterable addresses)

public final void addRange(Iterable<MailAddress> addresses)

Adds addresses to collection

Parameters:

Parameter Type Description
addresses java.lang.Iterable<com.aspose.email.MailAddress> Enumeration of mail addresses

insertItem(int index, MailAddress item)

public void insertItem(int index, MailAddress item)

Inserts an element into the ``` System.Collections.ObjectModel.Collection`1 ``` at the specified index.

Parameters:

Parameter Type Description
index int The zero-based index at which ``` item ``` should be inserted.
item MailAddress The object to insert. The value can be null for reference types.

clear()

public void clear()

Removes all elements from the Collection.

removeAt(int index)

public void removeAt(int index)

Removes the element at the specified index of the Collection.

Parameters:

Parameter Type Description
index int The zero-based index of the element to remove.