MapiRecipientCollection.Add
Contents
[
Hide
]Add(string, string, MapiRecipientType)
Adds the new recipient.
public void Add(string address, string displayName, MapiRecipientType recipientType)
Parameter | Type | Description |
---|---|---|
address | String | The mail address of recipient. |
displayName | String | The display name of recipient. |
recipientType | MapiRecipientType | Type of the recipient. |
Exceptions
exception | condition |
---|---|
ArgumentNullException | throws if recipient address is null or empty. |
ArgumentException | throws if recipient address is not in a recognized format. |
Remarks
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.
See Also
- enum MapiRecipientType
- class MapiRecipientCollection
- namespace Aspose.Email.Mapi
- assembly Aspose.Email
Add(string, string, string, MapiRecipientType)
Adds the new recipient.
public void Add(string address, string addressType, string displayName,
MapiRecipientType recipientType)
Parameter | Type | Description |
---|---|---|
address | String | The mail address of recipient. |
addressType | String | The type of address. |
displayName | String | The display name of recipient. |
recipientType | MapiRecipientType | Type of the recipient. |
Exceptions
exception | condition |
---|---|
ArgumentNullException | throws if recipient address is null or empty. |
ArgumentException | throws if recipient address is not in a recognized format. |
Remarks
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.
See Also
- enum MapiRecipientType
- class MapiRecipientCollection
- namespace Aspose.Email.Mapi
- assembly Aspose.Email
Add(MapiRecipient)
Adds an object to the end of the Collection.
public void Add(MapiRecipient item)
Parameter | Type | Description |
---|---|---|
item | MapiRecipient | The object to be added to the end of the Collection. The value can be null for reference types. |
See Also
- class MapiRecipient
- class MapiRecipientCollection
- namespace Aspose.Email.Mapi
- assembly Aspose.Email