This class represents a reference attachment More...

Inherits Aspose::Email::Attachment.

Public Member Functions

System::SharedPtr< System::Uri > get_Uri () const
 Specifies the Url of the provider endpoint. More...
 
void set_Uri (System::SharedPtr< System::Uri > value)
 Specifies the Url of the provider endpoint. More...
 
AttachmentPermissionType get_PermissionType () const
 Specifies the permission type. More...
 
void set_PermissionType (AttachmentPermissionType value)
 Specifies the permission type. More...
 
AttachmentProviderType get_ProviderType () const
 Specifies the provider type. More...
 
void set_ProviderType (AttachmentProviderType value)
 Specifies the provider type. More...
 
 ReferenceAttachment ()
 Initializes a new instance of ReferenceAttachment. More...
 
 ReferenceAttachment (System::SharedPtr< System::Uri > uri)
 Initializes a new instance of ReferenceAttachment. More...
 
 ReferenceAttachment (System::String uri)
 Initializes a new instance of ReferenceAttachment. More...
 
System::SharedPtr< Mapi::MapiAttachmentConvertToMapiAttachment (Mapi::OutlookMessageFormat format, int32_t codePage, int32_t count, bool preserveDates) override
 
void SetProvider (System::String provider)
 
System::String ToHeaderString ()
 
- Public Member Functions inherited from Aspose::Email::Attachment
bool get_IsTnef ()
 Gets a value indicating whether the attachment is TNEF formatted message. More...
 
bool get_IsEmbeddedMessage ()
 Gets a value indicating whether the attachment is an embedded message. More...
 
System::String get_Name ()
 Gets an attachment name More...
 
void set_Name (System::String value)
 Sets an attachment name More...
 
System::SharedPtr< System::Text::Encoding > get_NameEncoding ()
 Gets an encoding of attachment name More...
 
void set_NameEncoding (System::SharedPtr< System::Text::Encoding > value)
 Sets an encoding of attachment name More...
 
System::SharedPtr< Aspose::Email::Mime::ContentDispositionget_ContentDisposition ()
 Gets Content-Disposition header More...
 
bool get_IsUri () const
 Gets a value indicating whether attachment is URI-attachment. More...
 
System::SharedPtr< ObjectIdentifierget_Id () const
 Object identifier More...
 
System::String get_CreatedName () const
 Created name from subject in case when attacment is message/rfc822 More...
 
void set_CreatedName (System::String value)
 Created name from subject in case when attacment is message/rfc822 More...
 
System::SharedPtr< System::Text::Encoding > get_PreferredTextEncoding () override
 Gets a preferred text encoding More...
 
void set_PreferredTextEncoding (System::SharedPtr< System::Text::Encoding > value) override
 Sets a preferred text encoding More...
 
 Attachment (System::String fileName)
 Initializes a new instance of the Attachment class. More...
 
 Attachment (System::String fileName, System::String mediaType)
 Initializes a new instance of the Attachment class. More...
 
 Attachment (System::String fileName, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType)
 Initializes a new instance of the Attachment class. More...
 
 Attachment (System::SharedPtr< System::IO::Stream > contentStream, System::String name)
 Initializes a new instance of the Attachment class. More...
 
 Attachment (System::SharedPtr< System::IO::Stream > contentStream, System::String name, System::String mediaType)
 Initializes a new instance of the Attachment class. More...
 
 Attachment (System::SharedPtr< System::IO::Stream > contentStream, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType)
 Initializes a new instance of the Attachment class. More...
 
 Attachment ()
 
 Attachment (System::SharedPtr< System::IO::MemoryStream > content, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType, System::String name, System::String contentLocation, System::String contentId)
 
 Attachment (System::SharedPtr< Aspose::Email::Mime::MimePart > part)
 Initializes a new instance of the Attachment class. More...
 
System::SharedPtr< AttachmentClone ()
 
System::SharedPtr< Calendar::Model::Property::AttachmentProperty > ToCalendarAttachmentProperty ()
 
System::String CreateName (int32_t attachmentNumber)
 
- Public Member Functions inherited from Aspose::Email::AttachmentBase
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::HeaderCollectionget_Headers ()
 Gets headers collection of attachment. More...
 
System::SharedPtr< Aspose::Email::Mime::ContentTypeget_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...
 
void Dispose () override
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More...
 

Static Public Member Functions

static System::SharedPtr< System::Collections::Generic::ListExt< System::SharedPtr< ReferenceAttachment > > > FromHeaders (System::SharedPtr< Mime::HeaderCollection > headers)
 
- Static Public Member Functions inherited from Aspose::Email::Attachment
static System::SharedPtr< AttachmentCreateAttachmentFromString (System::String content, System::String name)
 Creates the attachment from string. More...
 
static System::SharedPtr< AttachmentCreateAttachmentFromString (System::String content, System::String name, System::SharedPtr< System::Text::Encoding > contentEncoding, System::String mediaType)
 Creates the attachment from string. More...
 
static System::SharedPtr< AttachmentCreateAttachmentFromString (System::String content, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType)
 Creates the attachment from string. More...
 

Static Public Attributes

static const System::String HeaderName
 

Protected Member Functions

virtual ~ReferenceAttachment ()
 
- Protected Member Functions inherited from Aspose::Email::Attachment
System::String GenerateContentId () override
 Generates the content id value. More...
 
virtual ~Attachment ()
 
- Protected Member Functions inherited from Aspose::Email::AttachmentBase
 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 void Dispose (bool disposing)
 Releases unmanaged and - optionally - managed resources. More...
 
virtual ~AttachmentBase ()
 

Friends

class Aspose::Email::MailMessage
 
class Aspose::Email::Mapi::MailMessageInterpretor
 
class Aspose::Email::Mapi::MapiMessage
 

Additional Inherited Members

- Public Attributes inherited from Aspose::Email::Attachment
int32_t CollectionNum
 
- Public Attributes inherited from Aspose::Email::AttachmentBase
bool Disposed
 Is disposed. More...
 
int32_t TnefAttachIndex
 
- Static Protected Member Functions inherited from Aspose::Email::AttachmentBase
static System::SharedPtr< System::Text::Encoding > GetEncodingFromContent (System::String contentString, System::SharedPtr< Aspose::Email::Mime::ContentType > contentType)
 Defines Encoding from content. More...
 
- Protected Attributes inherited from Aspose::Email::Attachment
bool isUri
 

Detailed Description

This class represents a reference attachment

Constructor & Destructor Documentation

◆ ReferenceAttachment() [1/3]

Aspose::Email::ReferenceAttachment::ReferenceAttachment ( )

Initializes a new instance of ReferenceAttachment.

◆ ReferenceAttachment() [2/3]

Aspose::Email::ReferenceAttachment::ReferenceAttachment ( System::SharedPtr< System::Uri >  uri)

Initializes a new instance of ReferenceAttachment.

Parameters
uriUrl

◆ ReferenceAttachment() [3/3]

Aspose::Email::ReferenceAttachment::ReferenceAttachment ( System::String  uri)

Initializes a new instance of ReferenceAttachment.

Parameters
uristring Url

◆ ~ReferenceAttachment()

virtual Aspose::Email::ReferenceAttachment::~ReferenceAttachment ( )
protectedvirtual

Member Function Documentation

◆ ConvertToMapiAttachment()

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

Reimplemented from Aspose::Email::Attachment.

◆ FromHeaders()

static System::SharedPtr<System::Collections::Generic::ListExt<System::SharedPtr<ReferenceAttachment> > > Aspose::Email::ReferenceAttachment::FromHeaders ( System::SharedPtr< Mime::HeaderCollection headers)
static

◆ get_PermissionType()

AttachmentPermissionType Aspose::Email::ReferenceAttachment::get_PermissionType ( ) const

Specifies the permission type.

◆ get_ProviderType()

AttachmentProviderType Aspose::Email::ReferenceAttachment::get_ProviderType ( ) const

Specifies the provider type.

◆ get_Uri()

System::SharedPtr<System::Uri> Aspose::Email::ReferenceAttachment::get_Uri ( ) const

Specifies the Url of the provider endpoint.

◆ set_PermissionType()

void Aspose::Email::ReferenceAttachment::set_PermissionType ( AttachmentPermissionType  value)

Specifies the permission type.

◆ set_ProviderType()

void Aspose::Email::ReferenceAttachment::set_ProviderType ( AttachmentProviderType  value)

Specifies the provider type.

◆ set_Uri()

void Aspose::Email::ReferenceAttachment::set_Uri ( System::SharedPtr< System::Uri >  value)

Specifies the Url of the provider endpoint.

◆ SetProvider()

void Aspose::Email::ReferenceAttachment::SetProvider ( System::String  provider)

◆ ToHeaderString()

System::String Aspose::Email::ReferenceAttachment::ToHeaderString ( )

Friends And Related Function Documentation

◆ Aspose::Email::MailMessage

friend class Aspose::Email::MailMessage
friend

◆ Aspose::Email::Mapi::MailMessageInterpretor

friend class Aspose::Email::Mapi::MailMessageInterpretor
friend

◆ Aspose::Email::Mapi::MapiMessage

friend class Aspose::Email::Mapi::MapiMessage
friend

Member Data Documentation

◆ HeaderName

const System::String Aspose::Email::ReferenceAttachment::HeaderName
static