public class MapiRecipientCollection extends ArrayList<MapiRecipient>
Represents a collection of MapiRecipient objects.
Constructor and Description |
---|
MapiRecipientCollection()
Initializes a new instance of the
MapiRecipientCollection class. |
Modifier and Type | Method and Description |
---|---|
void |
add(String address,
String displayName,
int recipientType)
Adds the new recipient.
|
void |
addMapiRecipient(MapiRecipient item)
Adds an object to the end of the
T:System.Collections.ObjectModel.Collection`1 . |
void |
insertMapiRecipient(int index,
MapiRecipient item)
Inserts an element into the
T:System.Collections.ObjectModel.Collection`1 at the specified index. |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
containsAll, equals, hashCode
public MapiRecipientCollection()
Initializes a new instance of the MapiRecipientCollection
class.
public void add(String address, String displayName, int recipientType)
Adds the new recipient.
address
- The mail address of recipient.displayName
- The display name of recipient.recipientType
- Type of the recipient.
com.aspose.email.ms.System.IllegalArgumentException
- throws if recipient address is null or empty.com.aspose.email.ms.System.IllegalArgumentException
- throws if recipient address is not in a recognized format.public void addMapiRecipient(MapiRecipient item)
Adds an object to the end of the T:System.Collections.ObjectModel.Collection`1
.
item
- The object to be added to the end of the T:System.Collections.ObjectModel.Collection`1
. The value can be null for reference types.public void insertMapiRecipient(int index, MapiRecipient item)
Inserts an element into the T:System.Collections.ObjectModel.Collection`1
at the specified index.
index
- The zero-based index at which item
should be inserted.item
- The object to insert. The value can be null for reference types.T:System.ArgumentOutOfRangeException
- index
is less than zero.
-or-
index
is greater than P:System.Collections.ObjectModel.Collection`1.Count
.Copyright (c) 2008-2013 Aspose Pty Ltd. All Rights Reserved.