Represents a collection of MapiRecipient objects.
More...
Inherits Collection< System::SharedPtr< Aspose::Email::Mapi::MapiRecipient > >.
|
ASPOSE_EMAIL_SHARED_API | MapiRecipientCollection () |
| Initializes a new instance of the MapiRecipientCollection class. More...
|
|
ASPOSE_EMAIL_SHARED_API | MapiRecipientCollection (System::SharedPtr< MapiMessageItemBase > owner) |
| Initializes a new instance of the MapiRecipientCollection class. More...
|
|
ASPOSE_EMAIL_SHARED_API void | Add (System::String address, System::String displayName, MapiRecipientType recipientType) |
| Adds the new recipient. More...
|
|
ASPOSE_EMAIL_SHARED_API void | Add (System::String address, System::String addressType, System::String displayName, MapiRecipientType recipientType) |
| Adds the new recipient. More...
|
|
ASPOSE_EMAIL_SHARED_API void | Add (System::String address, System::String addressType, System::String displayName, MapiRecipientType recipientType, bool updateDisplayNames) |
| Adds the new recipient. More...
|
|
ASPOSE_EMAIL_SHARED_API void | Add (System::SharedPtr< MapiRecipient > const &item) |
| Adds an object to the end of the T:System::Collections::ObjectModel::Collection`1. More...
|
|
ASPOSE_EMAIL_SHARED_API void | Insert (int32_t index, System::SharedPtr< MapiRecipient > const &item) |
| Inserts an element into the T:System::Collections::ObjectModel::Collection`1 at the specified index. More...
|
|
ASPOSE_EMAIL_SHARED_API bool | ContainsAddress (System::String address, MapiRecipientType recType) |
|
ASPOSE_EMAIL_SHARED_API void | DeepCopyTo (System::SharedPtr< MapiRecipientCollection > dest) |
|
Represents a collection of MapiRecipient objects.
◆ MapiRecipientCollection() [1/2]
ASPOSE_EMAIL_SHARED_API Aspose::Email::Mapi::MapiRecipientCollection::MapiRecipientCollection |
( |
| ) |
|
◆ MapiRecipientCollection() [2/2]
ASPOSE_EMAIL_SHARED_API Aspose::Email::Mapi::MapiRecipientCollection::MapiRecipientCollection |
( |
System::SharedPtr< MapiMessageItemBase > |
owner | ) |
|
◆ ~MapiRecipientCollection()
virtual ASPOSE_EMAIL_SHARED_API Aspose::Email::Mapi::MapiRecipientCollection::~MapiRecipientCollection |
( |
| ) |
|
|
protectedvirtual |
◆ Add() [1/4]
ASPOSE_EMAIL_SHARED_API void Aspose::Email::Mapi::MapiRecipientCollection::Add |
( |
System::SharedPtr< MapiRecipient > const & |
item | ) |
|
◆ Add() [2/4]
Adds the new 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.
- Parameters
-
address | The mail address of recipient. |
addressType | The type of address. |
displayName | The display name of recipient. |
recipientType | Type of the recipient. |
- Exceptions
-
ArgumentNullException | throws if recipient address is null or empty. |
ArgumentException | throws if recipient address is not in a recognized format. |
◆ Add() [3/4]
Adds the new 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.
- Parameters
-
address | The mail address of recipient. |
addressType | The type of address. |
displayName | The display name of recipient. |
recipientType | Type of the recipient. |
updateDisplayNames | The DisplayNames will be updated if true. |
- Exceptions
-
ArgumentNullException | throws if recipient address is null or empty. |
ArgumentException | throws if recipient address is not in a recognized format. |
◆ Add() [4/4]
Adds the new 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.
- Parameters
-
address | The mail address of recipient. |
displayName | The display name of recipient. |
recipientType | Type of the recipient. |
- Exceptions
-
ArgumentNullException | throws if recipient address is null or empty. |
ArgumentException | throws if recipient address is not in a recognized format. |
◆ ContainsAddress()
◆ DeepCopyTo()
ASPOSE_EMAIL_SHARED_API void Aspose::Email::Mapi::MapiRecipientCollection::DeepCopyTo |
( |
System::SharedPtr< MapiRecipientCollection > |
dest | ) |
|
◆ Insert()
ASPOSE_EMAIL_SHARED_API void Aspose::Email::Mapi::MapiRecipientCollection::Insert |
( |
int32_t |
index, |
|
|
System::SharedPtr< MapiRecipient > const & |
item |
|
) |
| |
◆ Aspose::Email::Mapi::MapiMessage
friend class Aspose::Email::Mapi::MapiMessage |
|
friend |
◆ Aspose::Email::Mapi::MapiMessageItemBase
◆ Aspose::Email::Mapi::MapiRecipientCollectionFactory
friend class Aspose::Email::Mapi::MapiRecipientCollectionFactory |
|
friend |