Represents the format to view a message. More...

Inherits Aspose::Email::AttachmentBase.

Public Member Functions

ASPOSE_EMAIL_SHARED_API System::SharedPtr< LinkedResourceCollection > get_LinkedResources ()
 Gets the set of embedded resources referred to by this alternate view. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< System::Uri > get_BaseUri ()
 Gets the base URI. More...
 
ASPOSE_EMAIL_SHARED_API void set_BaseUri (System::SharedPtr< System::Uri > value)
 Sets the base URI. More...
 
ASPOSE_EMAIL_SHARED_API AlternateView (System::String fileName)
 Initializes a new instance of the AlternateView class. More...
 
ASPOSE_EMAIL_SHARED_API AlternateView (System::String fileName, System::String mediaType)
 Initializes a new instance of the AlternateView class. More...
 
ASPOSE_EMAIL_SHARED_API AlternateView (System::String fileName, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType)
 Initializes a new instance of the AlternateView class. More...
 
ASPOSE_EMAIL_SHARED_API AlternateView (System::SharedPtr< System::IO::Stream > contentStream)
 Initializes a new instance of the AlternateView class. More...
 
ASPOSE_EMAIL_SHARED_API AlternateView (System::SharedPtr< System::IO::Stream > contentStream, System::String mediaType)
 Initializes a new instance of the AlternateView class. More...
 
ASPOSE_EMAIL_SHARED_API AlternateView (System::SharedPtr< System::IO::Stream > contentStream, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType)
 Initializes a new instance of the AlternateView class. More...
 
ASPOSE_EMAIL_SHARED_API AlternateView ()
 Initializes a new instance of the AlternateView class. More...
 
ASPOSE_EMAIL_SHARED_API AlternateView (System::SharedPtr< Aspose::Email::Mime::MimePart > part)
 Initializes a new instance of the AlternateView class. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< AlternateViewClone ()
 
virtual ASPOSE_EMAIL_SHARED_API System::SharedPtr< Mapi::MapiAttachmentConvertToMapiAttachment (Mapi::OutlookMessageFormat format, int32_t codePage, int32_t count, bool preserveDates)
 
- Public Member Functions inherited from Aspose::Email::AttachmentBase
ASPOSE_EMAIL_SHARED_API System::SharedPtr< System::IO::Stream > get_ContentStream ()
 Gets the content stream. More...
 
ASPOSE_EMAIL_SHARED_API void set_ContentStream (System::SharedPtr< System::IO::Stream > value)
 Sets the content stream. More...
 
ASPOSE_EMAIL_SHARED_API System::String get_ContentId ()
 Gets the content id. More...
 
ASPOSE_EMAIL_SHARED_API void set_ContentId (System::String value)
 Sets the content id. More...
 
virtual ASPOSE_EMAIL_SHARED_API System::SharedPtr< Mime::HeaderCollectionget_Headers ()
 Gets headers collection of attachment. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< Aspose::Email::Mime::ContentTypeget_ContentType ()
 Gets the type of the content. More...
 
ASPOSE_EMAIL_SHARED_API void set_ContentType (System::SharedPtr< Aspose::Email::Mime::ContentType > value)
 Sets the type of the content. More...
 
ASPOSE_EMAIL_SHARED_API Aspose::Email::Mime::TransferEncoding get_TransferEncoding ()
 Gets the transfer encoding. More...
 
ASPOSE_EMAIL_SHARED_API void set_TransferEncoding (Aspose::Email::Mime::TransferEncoding value)
 Sets the transfer encoding. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< System::Uri > get_ContentLocation () const
 Gets the content location. More...
 
ASPOSE_EMAIL_SHARED_API void set_ContentLocation (System::SharedPtr< System::Uri > value)
 Sets the content location. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< Aspose::Email::Mime::MimePart > get_MimePart () const
 Gets the MIME part. More...
 
ASPOSE_EMAIL_SHARED_API void set_MimePart (System::SharedPtr< Aspose::Email::Mime::MimePart > value)
 Sets the MIME part. More...
 
ASPOSE_EMAIL_SHARED_API bool get_Hidden () const
 
ASPOSE_EMAIL_SHARED_API void set_Hidden (bool value)
 
ASPOSE_EMAIL_SHARED_API AttachmentBase (System::SharedPtr< Aspose::Email::Mime::MimePart > part)
 Initializes a new instance of the AttachmentBase class. More...
 
virtual ASPOSE_EMAIL_SHARED_API void Save (System::SharedPtr< System::IO::Stream > stream)
 Saves the specified stream. More...
 
virtual ASPOSE_EMAIL_SHARED_API void SaveInternal (System::SharedPtr< System::IO::Stream > stream)
 Saves the specified stream. More...
 
virtual ASPOSE_EMAIL_SHARED_API void Save (System::String fileName)
 Saves the specified file name. More...
 
ASPOSE_EMAIL_SHARED_API void Dispose ()
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More...
 
ASPOSE_EMAIL_SHARED_API void SetContentFromString (System::String contentString, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType)
 Sets the content from string. More...
 
ASPOSE_EMAIL_SHARED_API void SetContentFromString (System::String contentString, System::SharedPtr< System::Text::Encoding > encoding, System::String mediaType)
 Sets the content from string. More...
 
ASPOSE_EMAIL_SHARED_API void SetSTnefContent (System::ArrayPtr< uint8_t > data)
 Sets the S/TNEF content. More...
 
virtual ASPOSE_EMAIL_SHARED_API void PrepareForSending ()
 Prepares for sending. More...
 

Static Public Member Functions

static ASPOSE_EMAIL_SHARED_API System::SharedPtr< AlternateViewCreateAlternateViewFromString (System::String content)
 Creates a AlternateView of using the content specified in a string. More...
 
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< AlternateViewCreateAlternateViewFromString (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 ASPOSE_EMAIL_SHARED_API System::SharedPtr< AlternateViewCreateAlternateViewFromString (System::String content, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType)
 Creates a AlternateView of using the content specified in a string. More...
 
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< AlternateViewCreateAlternateViewFromString (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
 
- Public Attributes inherited from Aspose::Email::AttachmentBase
bool Disposed
 
System::SharedPtr< Aspose::Email::Mime::MimePart > part
 
int32_t TnefAttachIndex
 

Protected Member Functions

virtual ASPOSE_EMAIL_SHARED_API void Dispose (bool disposing)
 Releases unmanaged and - optionally - managed resources. More...
 
- Protected Member Functions inherited from Aspose::Email::AttachmentBase
ASPOSE_EMAIL_SHARED_API AttachmentBase ()
 Initializes a new instance of the AttachmentBase class. More...
 
ASPOSE_EMAIL_SHARED_API AttachmentBase (System::SharedPtr< System::IO::Stream > contentStream, System::String name, System::String mediaType)
 Initializes a new instance of the AttachmentBase class. More...
 
ASPOSE_EMAIL_SHARED_API AttachmentBase (System::String fileName)
 Initializes a new instance of the AttachmentBase class. More...
 
ASPOSE_EMAIL_SHARED_API AttachmentBase (System::String fileName, System::String mediaType)
 Initializes a new instance of the AttachmentBase class. More...
 
ASPOSE_EMAIL_SHARED_API AttachmentBase (System::String fileName, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType)
 Initializes a new instance of the AttachmentBase class. More...
 
ASPOSE_EMAIL_SHARED_API AttachmentBase (System::SharedPtr< System::IO::Stream > contentStream)
 Initializes a new instance of the AttachmentBase class. More...
 
ASPOSE_EMAIL_SHARED_API AttachmentBase (System::SharedPtr< System::IO::Stream > contentStream, System::String mediaType)
 Initializes a new instance of the AttachmentBase class. More...
 
ASPOSE_EMAIL_SHARED_API AttachmentBase (System::SharedPtr< System::IO::Stream > contentStream, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType)
 Initializes a new instance of the AttachmentBase class. More...
 
virtual ASPOSE_EMAIL_SHARED_API System::String GenerateContentId ()
 Generates the content id value. More...
 
ASPOSE_EMAIL_SHARED_API 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...
 

Friends

class Aspose::Email::MailMessage
 
class Aspose::Email::Clients::Exchange::WebService::EWSClient2007
 
class Aspose::Email::Calendar::Task
 
class Aspose::Email::Calendar::Appointment
 

Additional Inherited Members

- Static Protected Member Functions inherited from Aspose::Email::AttachmentBase
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< System::Text::Encoding > GetEncodingFromContent (System::String contentString, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType)
 Defines Encoding from content. More...
 

Detailed Description

Represents the format to view a message.

Constructor & Destructor Documentation

◆ AlternateView() [1/8]

ASPOSE_EMAIL_SHARED_API Aspose::Email::AlternateView::AlternateView ( System::String  fileName)

Initializes a new instance of the AlternateView class.

Parameters
fileNameName of the file.

◆ AlternateView() [2/8]

ASPOSE_EMAIL_SHARED_API Aspose::Email::AlternateView::AlternateView ( System::String  fileName,
System::String  mediaType 
)

Initializes a new instance of the AlternateView class.

Parameters
fileNameName of the file.
mediaTypeInternet media type.

◆ AlternateView() [3/8]

ASPOSE_EMAIL_SHARED_API Aspose::Email::AlternateView::AlternateView ( System::String  fileName,
System::SharedPtr< Aspose::Email::Mime::ContentType contentType 
)

Initializes a new instance of the AlternateView class.

Parameters
fileNameName of the file.
contentTypeContent type.

◆ AlternateView() [4/8]

ASPOSE_EMAIL_SHARED_API Aspose::Email::AlternateView::AlternateView ( System::SharedPtr< System::IO::Stream >  contentStream)

Initializes a new instance of the AlternateView class.

Parameters
contentStreamThe content stream.

◆ AlternateView() [5/8]

ASPOSE_EMAIL_SHARED_API Aspose::Email::AlternateView::AlternateView ( System::SharedPtr< System::IO::Stream >  contentStream,
System::String  mediaType 
)

Initializes a new instance of the AlternateView class.

Parameters
contentStreamThe content stream.
mediaTypeInternet media type.

◆ AlternateView() [6/8]

ASPOSE_EMAIL_SHARED_API 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.

Parameters
contentStreamThe content stream.
contentTypeContent type.

◆ AlternateView() [7/8]

ASPOSE_EMAIL_SHARED_API Aspose::Email::AlternateView::AlternateView ( )

Initializes a new instance of the AlternateView class.

◆ AlternateView() [8/8]

ASPOSE_EMAIL_SHARED_API Aspose::Email::AlternateView::AlternateView ( System::SharedPtr< Aspose::Email::Mime::MimePart >  part)

Initializes a new instance of the AlternateView class.

Parameters
partAn attachment mime part
Exceptions
ArgumentNullExceptionpart is null

Member Function Documentation

◆ Clone()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<AlternateView> Aspose::Email::AlternateView::Clone ( )

◆ ConvertToMapiAttachment()

virtual ASPOSE_EMAIL_SHARED_API System::SharedPtr<Mapi::MapiAttachment> Aspose::Email::AlternateView::ConvertToMapiAttachment ( Mapi::OutlookMessageFormat  format,
int32_t  codePage,
int32_t  count,
bool  preserveDates 
)
virtual

◆ CreateAlternateViewFromString() [1/4]

static ASPOSE_EMAIL_SHARED_API System::SharedPtr<AlternateView> Aspose::Email::AlternateView::CreateAlternateViewFromString ( System::String  content)
static

Creates a AlternateView of using the content specified in a string.

Parameters
contentThe string that contains the content.
Returns
An AlternateView object that represents an alternate view.

◆ CreateAlternateViewFromString() [2/4]

static ASPOSE_EMAIL_SHARED_API System::SharedPtr<AlternateView> Aspose::Email::AlternateView::CreateAlternateViewFromString ( System::String  content,
System::SharedPtr< Aspose::Email::Mime::ContentType contentType 
)
static

Creates a AlternateView of using the content specified in a string.

Parameters
contentThe string that contains the content.
contentTypeContent type.
Returns
An AlternateView object that represents an alternate view.

◆ CreateAlternateViewFromString() [3/4]

static ASPOSE_EMAIL_SHARED_API System::SharedPtr<AlternateView> Aspose::Email::AlternateView::CreateAlternateViewFromString ( System::String  content,
System::SharedPtr< Aspose::Email::Mime::ContentType contentType,
Aspose::Email::Mime::TransferEncoding  transferencoding 
)
static

Creates a AlternateView of using the content specified in a string.

Parameters
contentThe string that contains the content.
contentTypeContent type.
transferencodingThe transfer encoding.
Returns
An AlternateView object that represents an alternate view.

◆ CreateAlternateViewFromString() [4/4]

static ASPOSE_EMAIL_SHARED_API System::SharedPtr<AlternateView> Aspose::Email::AlternateView::CreateAlternateViewFromString ( System::String  content,
System::SharedPtr< System::Text::Encoding >  contentEncoding,
System::String  mediaType 
)
static

Creates a AlternateView of using the content specified in a string.

Parameters
contentThe string that contains the content.
contentEncodingThe content encoding.
mediaTypeInternet media type.
Returns
An AlternateView object that represents an alternate view.

◆ Dispose()

virtual ASPOSE_EMAIL_SHARED_API void Aspose::Email::AlternateView::Dispose ( bool  disposing)
protectedvirtual

Releases unmanaged and - optionally - managed resources.

Parameters
disposingtrue to release both managed and unmanaged resources; false to release only unmanaged resources.

Reimplemented from Aspose::Email::AttachmentBase.

◆ get_BaseUri()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<System::Uri> Aspose::Email::AlternateView::get_BaseUri ( )

Gets the base URI.

The base URI.

◆ get_LinkedResources()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<LinkedResourceCollection> Aspose::Email::AlternateView::get_LinkedResources ( )

Gets the set of embedded resources referred to by this alternate view.

The linked resources.

◆ set_BaseUri()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::AlternateView::set_BaseUri ( System::SharedPtr< System::Uri >  value)

Sets the base URI.

The base URI.

Friends And Related Function Documentation

◆ Aspose::Email::Calendar::Appointment

◆ Aspose::Email::Calendar::Task

friend class Aspose::Email::Calendar::Task
friend

◆ Aspose::Email::Clients::Exchange::WebService::EWSClient2007

friend class Aspose::Email::Clients::Exchange::WebService::EWSClient2007
friend

◆ Aspose::Email::MailMessage

friend class Aspose::Email::MailMessage
friend

Member Data Documentation

◆ baseObject

System::SharedPtr<System::Object> Aspose::Email::AlternateView::baseObject