Add

MapiRecipientCollection.Add method (1 of 3)

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


MapiRecipientCollection.Add method (2 of 3)

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


MapiRecipientCollection.Add method (3 of 3)

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