Represents the format to view a message. More...
Inherits Aspose::Email::AttachmentBase.
Public Member Functions | |
System::SharedPtr< LinkedResourceCollection > | get_LinkedResources () |
Gets the set of embedded resources referred to by this alternate view. More... | |
System::SharedPtr< System::Uri > | get_BaseUri () |
Gets the base URI. More... | |
void | set_BaseUri (System::SharedPtr< System::Uri > value) |
Sets the base URI. More... | |
AlternateView (System::String fileName) | |
Initializes a new instance of the AlternateView class. More... | |
AlternateView (System::String fileName, System::String mediaType) | |
Initializes a new instance of the AlternateView class. More... | |
AlternateView (System::String fileName, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType) | |
Initializes a new instance of the AlternateView class. More... | |
AlternateView (System::SharedPtr< System::IO::Stream > contentStream) | |
Initializes a new instance of the AlternateView class. More... | |
AlternateView (System::SharedPtr< System::IO::Stream > contentStream, System::String mediaType) | |
Initializes a new instance of the AlternateView class. More... | |
AlternateView (System::SharedPtr< System::IO::Stream > contentStream, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType) | |
Initializes a new instance of the AlternateView class. More... | |
AlternateView () | |
Initializes a new instance of the AlternateView class. More... | |
AlternateView (System::SharedPtr< Aspose::Email::Mime::MimePart > part) | |
Initializes a new instance of the AlternateView class. More... | |
System::SharedPtr< AlternateView > | Clone () |
System::SharedPtr< Mapi::MapiAttachment > | ConvertToMapiAttachment (Mapi::OutlookMessageFormat format, int32_t codePage, int32_t count, bool preserveDates) override |
![]() | |
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::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... | |
void | Dispose () override |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
Static Public Member Functions | |
static System::SharedPtr< AlternateView > | CreateAlternateViewFromString (System::String content) |
Creates a AlternateView of using the content specified in a string. More... | |
static System::SharedPtr< AlternateView > | CreateAlternateViewFromString (System::String content, System::SharedPtr< System::Text::Encoding > contentEncoding, System::String mediaType) |
Creates a AlternateView of using the content specified in a string. More... | |
static System::SharedPtr< AlternateView > | CreateAlternateViewFromString (System::String content, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType) |
Creates a AlternateView of using the content specified in a string. More... | |
static System::SharedPtr< AlternateView > | CreateAlternateViewFromString (System::String content, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType, Aspose::Email::Mime::TransferEncoding transferencoding) |
Creates a AlternateView of using the content specified in a string. More... | |
Public Attributes | |
System::SharedPtr< System::Object > | baseObject |
Reference to the base object More... | |
![]() | |
bool | Disposed |
Is disposed. More... | |
int32_t | TnefAttachIndex |
Protected Member Functions | |
void | Dispose (bool disposing) override |
Releases unmanaged and - optionally - managed resources. More... | |
![]() | |
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 | ~AttachmentBase () |
Additional Inherited Members | |
![]() | |
static System::SharedPtr< System::Text::Encoding > | GetEncodingFromContent (System::String contentString, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType) |
Defines Encoding from content. More... | |
Represents the format to view a message.
Aspose::Email::AlternateView::AlternateView | ( | System::String | fileName | ) |
Initializes a new instance of the AlternateView class.
fileName | Name of the file. |
Aspose::Email::AlternateView::AlternateView | ( | System::String | fileName, |
System::String | mediaType | ||
) |
Initializes a new instance of the AlternateView class.
fileName | Name of the file. |
mediaType | Internet media type. |
Aspose::Email::AlternateView::AlternateView | ( | System::String | fileName, |
System::SharedPtr< Aspose::Email::Mime::ContentType > | contentType | ||
) |
Initializes a new instance of the AlternateView class.
fileName | Name of the file. |
contentType | Content type. |
Aspose::Email::AlternateView::AlternateView | ( | System::SharedPtr< System::IO::Stream > | contentStream | ) |
Initializes a new instance of the AlternateView class.
contentStream | The content stream. |
Aspose::Email::AlternateView::AlternateView | ( | System::SharedPtr< System::IO::Stream > | contentStream, |
System::String | mediaType | ||
) |
Initializes a new instance of the AlternateView class.
contentStream | The content stream. |
mediaType | Internet media type. |
Aspose::Email::AlternateView::AlternateView | ( | System::SharedPtr< System::IO::Stream > | contentStream, |
System::SharedPtr< Aspose::Email::Mime::ContentType > | contentType | ||
) |
Initializes a new instance of the AlternateView class.
contentStream | The content stream. |
contentType | Content type. |
Aspose::Email::AlternateView::AlternateView | ( | ) |
Initializes a new instance of the AlternateView class.
Aspose::Email::AlternateView::AlternateView | ( | System::SharedPtr< Aspose::Email::Mime::MimePart > | part | ) |
Initializes a new instance of the AlternateView class.
part | An attachment mime part |
ArgumentNullException | part is null |
System::SharedPtr<AlternateView> Aspose::Email::AlternateView::Clone | ( | ) |
|
overridevirtual |
Implements Aspose::Email::AttachmentBase.
|
static |
Creates a AlternateView of using the content specified in a string.
content | The string that contains the content. |
|
static |
Creates a AlternateView of using the content specified in a string.
content | The string that contains the content. |
contentType | Content type. |
|
static |
Creates a AlternateView of using the content specified in a string.
content | The string that contains the content. |
contentType | Content type. |
transferencoding | The transfer encoding. |
|
static |
Creates a AlternateView of using the content specified in a string.
content | The string that contains the content. |
contentEncoding | The content encoding. |
mediaType | Internet media type. |
|
overrideprotectedvirtual |
Releases unmanaged and - optionally - managed resources.
disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Reimplemented from Aspose::Email::AttachmentBase.
System::SharedPtr<System::Uri> Aspose::Email::AlternateView::get_BaseUri | ( | ) |
Gets the base URI.
The base URI.
System::SharedPtr<LinkedResourceCollection> Aspose::Email::AlternateView::get_LinkedResources | ( | ) |
Gets the set of embedded resources referred to by this alternate view.
The linked resources.
void Aspose::Email::AlternateView::set_BaseUri | ( | System::SharedPtr< System::Uri > | value | ) |
Sets the base URI.
The base URI.
|
friend |
|
friend |
|
friend |
|
friend |
System::SharedPtr<System::Object> Aspose::Email::AlternateView::baseObject |
Reference to the base object