Add

Add (1 of 5)

Adds an object to the end of the T:System::Collections::ObjectModel::Collection`1 .

Returns: void Aspose::Email::Mapi::

Add(const System::SharedPtr < MapiAttachment > & item)
ParameterDescription
itemThe object to be added to the end of the T:System::Collections::ObjectModel::Collection`1 . The value can be null for reference types.

Add (2 of 5)

Adds the new attachment.

Returns: void Aspose::Email::Mapi::

Add(System::String name, System::ArrayPtr< uint8_t > data)
ParameterDescription
nameThe name of attachment.
dataThe attachment data.

Add (3 of 5)

Adds the new attachment as embedded message.

Returns: void Aspose::Email::Mapi::

Add(System::String name, System::SharedPtr < MapiMessage > msg)
ParameterDescription
nameThe name of attachment.
msgThe MapiMessage that represents the attached message.

Add (4 of 5)

Adds a reference attachment to the collection using the specified name and configuration options.

Returns: void Aspose::Email::Mapi::

Add(System::String name, System::SharedPtr < ReferenceAttachmentOptions > options)
ParameterDescription
nameThe name of the attachment to display in the message.
optionsAn instance of ReferenceAttachmentOptions containing the configuration details for the reference attachment, such as the shared link, URL, and provider name.

Add (5 of 5)

Adds the reference attachment.

Returns: void Aspose::Email::Mapi::

Add(System::String name, System::String sharedLink, System::String url, System::String providerName)
ParameterDescription
nameThe name of attachment.
sharedLinkA fully qualified shared link to the attachment provided by web service manipulating the attachment.
urlA file location.
providerNameA name of reference attachment provider.