MapiRecipientCollection

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

public class MapiRecipientCollection extends System.Collections.ObjectModel.Collection<MapiRecipient>

Represents a collection of MapiRecipient objects.

Constructors

Constructor Description
MapiRecipientCollection() Initializes a new instance of the MapiRecipientCollection class.

Methods

Method Description
add(String address, String displayName, int recipientType) Adds the new recipient.
add(String address, String addressType, String displayName, int recipientType) Adds the new recipient.
addMapiRecipient(MapiRecipient item) Adds an object to the end of the ``` System.Collections.ObjectModel.Collection`1 ```.
insertMapiRecipient(int index, MapiRecipient item) Inserts an element into the ``` System.Collections.ObjectModel.Collection`1 ``` at the specified index.

MapiRecipientCollection()

public MapiRecipientCollection()

Initializes a new instance of the MapiRecipientCollection class.

add(String address, String displayName, int recipientType)

public final void add(String address, String displayName, int recipientType)

Adds the new recipient.

Parameters:

Parameter Type Description
address java.lang.String The mail address of recipient.
displayName java.lang.String The display name of recipient.
recipientType int Type of the recipient.

When adding a new recepient, the value of either MapiMessage.DisplayTo or MapiMessage.DisplayBcc or MapiMessage.DisplayCC is also updated depending on the type of recepient. |

add(String address, String addressType, String displayName, int recipientType)

public final void add(String address, String addressType, String displayName, int recipientType)

Adds the new recipient.

Parameters:

Parameter Type Description
address java.lang.String The mail address of recipient.
addressType java.lang.String The type of address.
displayName java.lang.String The display name of recipient.
recipientType int Type of the recipient.

When adding a new recepient, the value of either MapiMessage.DisplayTo or MapiMessage.DisplayBcc or MapiMessage.DisplayCC is also updated depending on the type of recepient. |

addMapiRecipient(MapiRecipient item)

public final void addMapiRecipient(MapiRecipient item)

Adds an object to the end of the ``` System.Collections.ObjectModel.Collection`1 ```.

Parameters:

Parameter Type Description
item MapiRecipient The object to be added to the end of the ``` System.Collections.ObjectModel.Collection`1 ```. The value can be null for reference types.

insertMapiRecipient(int index, MapiRecipient item)

public final void insertMapiRecipient(int index, MapiRecipient 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 MapiRecipient The object to insert. The value can be null for reference types.