Represents a collection of MapiRecipient objects.
More...
Inherits System::Collections::ObjectModel::Collection< System::SharedPtr< Aspose::Email::Mapi::MapiRecipient > >.
|
| MapiRecipientCollection () |
| Initializes a new instance of the MapiRecipientCollection class. More...
|
|
| MapiRecipientCollection (System::SharedPtr< MapiMessageItemBase > owner) |
| Initializes a new instance of the MapiRecipientCollection class. More...
|
|
void | Add (System::String address, System::String displayName, MapiRecipientType recipientType) |
| Adds the new recipient. More...
|
|
void | Add (System::String address, System::String addressType, System::String displayName, MapiRecipientType recipientType) |
| Adds the new recipient. More...
|
|
void | Add (System::String address, System::String addressType, System::String displayName, MapiRecipientType recipientType, bool updateDisplayNames) |
| Adds the new recipient. More...
|
|
void | Add (const System::SharedPtr< MapiRecipient > &item) override |
| Adds an object to the end of the T:System::Collections::ObjectModel::Collection`1. More...
|
|
void | Insert (int32_t index, const System::SharedPtr< MapiRecipient > &item) override |
| Inserts an element into the T:System::Collections::ObjectModel::Collection`1 at the specified index. More...
|
|
bool | ContainsAddress (System::String address, MapiRecipientType recType) |
|
void | DeepCopyTo (System::SharedPtr< MapiRecipientCollection > dest) |
|
void | SetTemplateWeakPtr (uint32_t argument) override |
|
Represents a collection of MapiRecipient objects.
◆ MapiRecipientCollection() [1/2]
Aspose::Email::Mapi::MapiRecipientCollection::MapiRecipientCollection |
( |
| ) |
|
◆ MapiRecipientCollection() [2/2]
Aspose::Email::Mapi::MapiRecipientCollection::MapiRecipientCollection |
( |
System::SharedPtr< MapiMessageItemBase > |
owner | ) |
|
◆ ~MapiRecipientCollection()
virtual Aspose::Email::Mapi::MapiRecipientCollection::~MapiRecipientCollection |
( |
| ) |
|
|
protectedvirtual |
◆ Add() [1/4]
void Aspose::Email::Mapi::MapiRecipientCollection::Add |
( |
const System::SharedPtr< MapiRecipient > & |
item | ) |
|
|
override |
◆ Add() [2/4]
void Aspose::Email::Mapi::MapiRecipientCollection::Add |
( |
System::String |
address, |
|
|
System::String |
addressType, |
|
|
System::String |
displayName, |
|
|
MapiRecipientType |
recipientType |
|
) |
| |
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]
void Aspose::Email::Mapi::MapiRecipientCollection::Add |
( |
System::String |
address, |
|
|
System::String |
addressType, |
|
|
System::String |
displayName, |
|
|
MapiRecipientType |
recipientType, |
|
|
bool |
updateDisplayNames |
|
) |
| |
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]
void Aspose::Email::Mapi::MapiRecipientCollection::Add |
( |
System::String |
address, |
|
|
System::String |
displayName, |
|
|
MapiRecipientType |
recipientType |
|
) |
| |
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()
bool Aspose::Email::Mapi::MapiRecipientCollection::ContainsAddress |
( |
System::String |
address, |
|
|
MapiRecipientType |
recType |
|
) |
| |
◆ DeepCopyTo()
◆ Insert()
void Aspose::Email::Mapi::MapiRecipientCollection::Insert |
( |
int32_t |
index, |
|
|
const System::SharedPtr< MapiRecipient > & |
item |
|
) |
| |
|
override |
◆ SetTemplateWeakPtr()
void Aspose::Email::Mapi::MapiRecipientCollection::SetTemplateWeakPtr |
( |
uint32_t |
argument | ) |
|
|
override |
◆ Aspose::Email::Mapi::MapiMessage
◆ Aspose::Email::Mapi::MapiMessageItemBase
◆ Aspose::Email::Mapi::MapiRecipientCollectionFactory
friend class Aspose::Email::Mapi::MapiRecipientCollectionFactory |
|
friend |