Base class for mail attachment. More...
Inherits IDisposable.
Inherited by Aspose::Email::AlternateView, Aspose::Email::Attachment, and Aspose::Email::LinkedResource.
Public Member Functions | |
| System::SharedPtr< System::IO::Stream > | get_ContentStream () |
| Gets the content stream. More... | |
| void | set_ContentStream (System::SharedPtr< System::IO::Stream > value) |
| Sets the content stream. More... | |
| System::String | get_ContentId () |
| Gets the content id. More... | |
| void | set_ContentId (System::String value) |
| Sets the content id. More... | |
| virtual System::SharedPtr< Mime::HeaderCollection > | get_Headers () |
| Gets headers collection of attachment. More... | |
| System::SharedPtr< Aspose::Email::Mime::ContentType > | get_ContentType () |
| Gets the type of the content. More... | |
| void | set_ContentType (System::SharedPtr< Aspose::Email::Mime::ContentType > value) |
| Sets the type of the content. More... | |
| Aspose::Email::Mime::TransferEncoding | get_TransferEncoding () |
| Gets the transfer encoding. More... | |
| void | set_TransferEncoding (Aspose::Email::Mime::TransferEncoding value) |
| Sets the transfer encoding. More... | |
| System::SharedPtr< System::Uri > | get_ContentLocation () const |
| Gets the content location. More... | |
| void | set_ContentLocation (System::SharedPtr< System::Uri > value) |
| Sets the content location. More... | |
| System::String | get_ItemId () const |
| void | set_ItemId (System::String value) |
| System::SharedPtr< Aspose::Email::Mime::MimePart > | get_MimePart () const |
| Gets the MIME part. More... | |
| void | set_MimePart (System::SharedPtr< Aspose::Email::Mime::MimePart > value) |
| Sets the MIME part. More... | |
| bool | get_Hidden () |
| void | set_Hidden (bool value) |
| virtual void | SaveInternal (System::SharedPtr< System::IO::Stream > stream) |
| Saves the specified stream. More... | |
| virtual void | Save (System::SharedPtr< System::IO::Stream > stream) |
| Saves the specified stream. More... | |
| virtual void | Save (System::String fileName) |
| Saves the specified file name. More... | |
| void | SetContentFromString (System::String contentString, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType) |
| Sets the content from string. More... | |
| void | SetContentFromString (System::String contentString, System::SharedPtr< System::Text::Encoding > encoding, System::String mediaType) |
| Sets the content from string. More... | |
| void | SetContentFromString (System::String contentString, System::SharedPtr< System::Text::Encoding > encoding, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType, Aspose::Email::Mime::TransferEncoding te) |
| Sets the content from string. More... | |
| void | SetSTnefContent (System::ArrayPtr< uint8_t > data) |
| Sets the S/TNEF content. More... | |
| virtual void | PrepareForSending () |
| Prepares for sending. More... | |
| virtual System::SharedPtr< Mapi::MapiAttachment > | ConvertToMapiAttachment (Mapi::OutlookMessageFormat format, int32_t codePage, int32_t count, bool preserveDates)=0 |
| void | Dispose () override |
| Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
Public Attributes | |
| bool | Disposed |
| Is disposed. More... | |
| int32_t | TnefAttachIndex |
Protected Member Functions | |
| AttachmentBase () | |
| Initializes a new instance of the AttachmentBase class. More... | |
| AttachmentBase (System::SharedPtr< System::IO::Stream > contentStream, System::String name, System::String mediaType) | |
| Initializes a new instance of the AttachmentBase class. More... | |
| AttachmentBase (System::String fileName) | |
| Initializes a new instance of the AttachmentBase class. More... | |
| AttachmentBase (System::String fileName, System::String mediaType) | |
| Initializes a new instance of the AttachmentBase class. More... | |
| AttachmentBase (System::String fileName, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType) | |
| Initializes a new instance of the AttachmentBase class. More... | |
| AttachmentBase (System::SharedPtr< System::IO::Stream > contentStream) | |
| Initializes a new instance of the AttachmentBase class. More... | |
| AttachmentBase (System::SharedPtr< System::IO::Stream > contentStream, System::String mediaType) | |
| Initializes a new instance of the AttachmentBase class. More... | |
| AttachmentBase (System::SharedPtr< System::IO::Stream > contentStream, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType) | |
| Initializes a new instance of the AttachmentBase class. More... | |
| virtual System::String | GenerateContentId () |
| Generates the content id value. More... | |
| virtual void | Dispose (bool disposing) |
| Releases unmanaged and - optionally - managed resources. More... | |
| virtual | ~AttachmentBase () |
Static Protected Member Functions | |
| static System::SharedPtr< System::Text::Encoding > | GetEncodingFromContent (System::String contentString, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType) |
| Defines Encoding from content. More... | |
Base class for mail attachment.
|
protected |
Initializes a new instance of the AttachmentBase class.
|
protected |
Initializes a new instance of the AttachmentBase class.
| contentStream | The content stream. |
| name | The attachment name. |
| mediaType | Type of the media. |
|
protected |
Initializes a new instance of the AttachmentBase class.
| fileName | Name of the file. |
|
protected |
Initializes a new instance of the AttachmentBase class.
| fileName | Name of the file. |
| mediaType | Type of the media. |
|
protected |
Initializes a new instance of the AttachmentBase class.
| fileName | Name of the file. |
| contentType | Type of the content. |
|
protected |
Initializes a new instance of the AttachmentBase class.
| contentStream | The content stream. |
|
protected |
Initializes a new instance of the AttachmentBase class.
| contentStream | The content stream. |
| mediaType | Type of the media. |
|
protected |
Initializes a new instance of the AttachmentBase class.
| contentStream | The content stream. |
| contentType | Type of the content. |
|
protectedvirtual |
|
pure virtual |
|
override |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
protectedvirtual |
Releases unmanaged and - optionally - managed resources.
| disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Reimplemented in Aspose::Email::AlternateView.
|
protectedvirtual |
| System::String Aspose::Email::AttachmentBase::get_ContentId | ( | ) |
Gets the content id.
The content id.
| System::SharedPtr<System::Uri> Aspose::Email::AttachmentBase::get_ContentLocation | ( | ) | const |
Gets the content location.
The content location.
| System::SharedPtr<System::IO::Stream> Aspose::Email::AttachmentBase::get_ContentStream | ( | ) |
Gets the content stream.
The content stream.
| System::SharedPtr<Aspose::Email::Mime::ContentType> Aspose::Email::AttachmentBase::get_ContentType | ( | ) |
Gets the type of the content.
The type of the content.
|
virtual |
Gets headers collection of attachment.
| bool Aspose::Email::AttachmentBase::get_Hidden | ( | ) |
| System::String Aspose::Email::AttachmentBase::get_ItemId | ( | ) | const |
| System::SharedPtr<Aspose::Email::Mime::MimePart> Aspose::Email::AttachmentBase::get_MimePart | ( | ) | const |
Gets the MIME part.
The MIME part.
| Aspose::Email::Mime::TransferEncoding Aspose::Email::AttachmentBase::get_TransferEncoding | ( | ) |
Gets the transfer encoding.
The transfer encoding.
|
staticprotected |
Defines Encoding from content.
| contentString | The content string. |
| contentType | The content type. |
|
virtual |
Prepares for sending.
|
virtual |
Saves the specified stream.
| stream | The stream. |
|
virtual |
Saves the specified file name.
| fileName | Name of the file. |
|
virtual |
Saves the specified stream.
| stream | The stream. |
| void Aspose::Email::AttachmentBase::set_ContentId | ( | System::String | value | ) |
Sets the content id.
The content id.
| void Aspose::Email::AttachmentBase::set_ContentLocation | ( | System::SharedPtr< System::Uri > | value | ) |
Sets the content location.
The content location.
| void Aspose::Email::AttachmentBase::set_ContentStream | ( | System::SharedPtr< System::IO::Stream > | value | ) |
Sets the content stream.
The content stream.
| void Aspose::Email::AttachmentBase::set_ContentType | ( | System::SharedPtr< Aspose::Email::Mime::ContentType > | value | ) |
Sets the type of the content.
The type of the content.
| void Aspose::Email::AttachmentBase::set_Hidden | ( | bool | value | ) |
| void Aspose::Email::AttachmentBase::set_ItemId | ( | System::String | value | ) |
| void Aspose::Email::AttachmentBase::set_MimePart | ( | System::SharedPtr< Aspose::Email::Mime::MimePart > | value | ) |
Sets the MIME part.
The MIME part.
| void Aspose::Email::AttachmentBase::set_TransferEncoding | ( | Aspose::Email::Mime::TransferEncoding | value | ) |
Sets the transfer encoding.
The transfer encoding.
| void Aspose::Email::AttachmentBase::SetContentFromString | ( | System::String | contentString, |
| System::SharedPtr< Aspose::Email::Mime::ContentType > | contentType | ||
| ) |
Sets the content from string.
| contentString | The content string. |
| contentType | Type of the content. |
| void Aspose::Email::AttachmentBase::SetContentFromString | ( | System::String | contentString, |
| System::SharedPtr< System::Text::Encoding > | encoding, | ||
| System::SharedPtr< Aspose::Email::Mime::ContentType > | contentType, | ||
| Aspose::Email::Mime::TransferEncoding | te | ||
| ) |
Sets the content from string.
| contentString | The content string. |
| encoding | The encoding. |
| contentType | The content type. |
| te | The transfer encoding. |
| void Aspose::Email::AttachmentBase::SetContentFromString | ( | System::String | contentString, |
| System::SharedPtr< System::Text::Encoding > | encoding, | ||
| System::String | mediaType | ||
| ) |
Sets the content from string.
| contentString | The content string. |
| encoding | The encoding. |
| mediaType | Type of the media. |
| void Aspose::Email::AttachmentBase::SetSTnefContent | ( | System::ArrayPtr< uint8_t > | data | ) |
Sets the S/TNEF content.
| data | The thef data. |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
| bool Aspose::Email::AttachmentBase::Disposed |
Is disposed.
| int32_t Aspose::Email::AttachmentBase::TnefAttachIndex |