public class MapiRecipientCollection extends com.aspose.ms.System.Collections.ObjectModel.Collection<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 |
add(String address,
String addressType,
String displayName,
int recipientType)
Adds the new recipient.
|
void |
addMapiRecipient(MapiRecipient item)
Adds an object to the end of the
System.Collections.ObjectModel.Collection`1 . |
void |
insertMapiRecipient(int index,
MapiRecipient item)
Inserts an element into the
System.Collections.ObjectModel.Collection`1 at the specified index. |
public MapiRecipientCollection()
Initializes a new instance of the MapiRecipientCollection
class.
public final 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.ms.System.ArgumentNullException
- throws if recipient address is null or empty.com.aspose.ms.System.ArgumentException
- throws if recipient address is not in a recognized format.public final void add(String address, String addressType, String displayName, int recipientType)
Adds the new recipient.
address
- The mail address of recipient.addressType
- The type of address.displayName
- The display name of recipient.recipientType
- Type of the recipient.
com.aspose.ms.System.ArgumentNullException
- throws if recipient address is null or empty.com.aspose.ms.System.ArgumentException
- throws if recipient address is not in a recognized format.public final void addMapiRecipient(MapiRecipient item)
Adds an object to the end of the System.Collections.ObjectModel.Collection`1
.
item
- The object to be added to the end of the System.Collections.ObjectModel.Collection`1
. The value can be null for reference types.public final void insertMapiRecipient(int index, MapiRecipient item)
Inserts an element into the 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.ArgumentOutOfRangeException
- index
is less than zero.
-or-
index
is greater than P:System.Collections.ObjectModel.Collection`1.Count
.