Aspose::Email::Mime::ContentDisposition Class Reference

Represents a Content-Disposition header. More...

Inherits Object.

Public Member Functions

System::String get_DispositionType () const
 Gets the type of the disposition. More...
 
void set_DispositionType (System::String value)
 Sets the type of the disposition. More...
 
System::SharedPtr< TrackingStringDictionaryget_Parameters ()
 Gets the parameters. More...
 
System::String get_FileName ()
 Gets the file name for an attachment. More...
 
void set_FileName (System::String value)
 Sets the file name for an attachment. More...
 
System::DateTime get_CreationDate ()
 Gets the creation date. More...
 
void set_CreationDate (System::DateTime value)
 Sets the creation date. More...
 
System::DateTime get_ModificationDate ()
 Gets the modification date. More...
 
void set_ModificationDate (System::DateTime value)
 Sets the modification date. More...
 
bool get_Inline ()
 Gets a value that determines the disposition type. More...
 
void set_Inline (bool value)
 Sets a value that determines the disposition type. More...
 
System::DateTime get_ReadDate ()
 Gets the read date. More...
 
void set_ReadDate (System::DateTime value)
 Sets the read date. More...
 
int64_t get_Size ()
 Gets the size of a file attachment. More...
 
void set_Size (int64_t value)
 Sets the size of a file attachment. More...
 
bool get_IsChanged ()
 
System::SharedPtr< ContentDispositionClone ()
 
 ContentDisposition ()
 Initializes a new instance of the ContentDisposition class. More...
 
 ContentDisposition (System::String disposition)
 Initializes a new instance of the ContentDisposition class. More...
 
void Set (System::String contentDisposition, System::SharedPtr< HeaderCollection > headers)
 
void Persist (System::SharedPtr< HeaderCollection > headers, bool forcePersist)
 
bool Equals (System::SharedPtr< System::Object > obj) override
 Determines whether the specified System::Object is equal to this instance. More...
 
int32_t GetHashCode () const override
 Returns a hash code for this instance. More...
 
System::String ToString () const override
 Returns a System::String that represents this instance. More...
 

Friends

class Aspose::Email::MailMessage
 
class Aspose::Email::Mime::HeaderCollection
 

Detailed Description

Represents a Content-Disposition header.

Constructor & Destructor Documentation

◆ ContentDisposition() [1/2]

Aspose::Email::Mime::ContentDisposition::ContentDisposition ( )

Initializes a new instance of the ContentDisposition class.

◆ ContentDisposition() [2/2]

Aspose::Email::Mime::ContentDisposition::ContentDisposition ( System::String  disposition)

Initializes a new instance of the ContentDisposition class.

Parameters
dispositionA value that contains the disposition.

Member Function Documentation

◆ Clone()

System::SharedPtr<ContentDisposition> Aspose::Email::Mime::ContentDisposition::Clone ( )

◆ Equals()

bool Aspose::Email::Mime::ContentDisposition::Equals ( System::SharedPtr< System::Object >  obj)
override

Determines whether the specified System::Object is equal to this instance.

Parameters
objThe System::Object to compare with this instance.
Returns
true if the specified System::Object is equal to this instance; otherwise, false.

◆ get_CreationDate()

System::DateTime Aspose::Email::Mime::ContentDisposition::get_CreationDate ( )

Gets the creation date.

A DateTime value that indicates the file creation date; otherwise, MinValue if no date was specified.

◆ get_DispositionType()

System::String Aspose::Email::Mime::ContentDisposition::get_DispositionType ( ) const

Gets the type of the disposition.

The String that contains the disposition type.

◆ get_FileName()

System::String Aspose::Email::Mime::ContentDisposition::get_FileName ( )

Gets the file name for an attachment.

The name of the file.

◆ get_Inline()

bool Aspose::Email::Mime::ContentDisposition::get_Inline ( )

Gets a value that determines the disposition type.

true if content in the attachment is presented inline; otherwise, false.

◆ get_IsChanged()

bool Aspose::Email::Mime::ContentDisposition::get_IsChanged ( )

◆ get_ModificationDate()

System::DateTime Aspose::Email::Mime::ContentDisposition::get_ModificationDate ( )

Gets the modification date.

A DateTime value that indicates the file modification date; otherwise, MinValue if no date was specified.

◆ get_Parameters()

System::SharedPtr<TrackingStringDictionary> Aspose::Email::Mime::ContentDisposition::get_Parameters ( )

Gets the parameters.

A StringDictionary that contains parameter name/value pairs.

◆ get_ReadDate()

System::DateTime Aspose::Email::Mime::ContentDisposition::get_ReadDate ( )

Gets the read date.

A DateTime value that indicates the file read date; otherwise, MinValue if no date was specified.

◆ get_Size()

int64_t Aspose::Email::Mime::ContentDisposition::get_Size ( )

Gets the size of a file attachment.

A Int32 that specifies the number of bytes in the file attachment.

◆ GetHashCode()

int32_t Aspose::Email::Mime::ContentDisposition::GetHashCode ( ) const
override

Returns a hash code for this instance.

Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

◆ Persist()

void Aspose::Email::Mime::ContentDisposition::Persist ( System::SharedPtr< HeaderCollection headers,
bool  forcePersist 
)

◆ Set()

void Aspose::Email::Mime::ContentDisposition::Set ( System::String  contentDisposition,
System::SharedPtr< HeaderCollection headers 
)

◆ set_CreationDate()

void Aspose::Email::Mime::ContentDisposition::set_CreationDate ( System::DateTime  value)

Sets the creation date.

A DateTime value that indicates the file creation date; otherwise, MinValue if no date was specified.

◆ set_DispositionType()

void Aspose::Email::Mime::ContentDisposition::set_DispositionType ( System::String  value)

Sets the type of the disposition.

The String that contains the disposition type.

◆ set_FileName()

void Aspose::Email::Mime::ContentDisposition::set_FileName ( System::String  value)

Sets the file name for an attachment.

The name of the file.

◆ set_Inline()

void Aspose::Email::Mime::ContentDisposition::set_Inline ( bool  value)

Sets a value that determines the disposition type.

true if content in the attachment is presented inline; otherwise, false.

◆ set_ModificationDate()

void Aspose::Email::Mime::ContentDisposition::set_ModificationDate ( System::DateTime  value)

Sets the modification date.

A DateTime value that indicates the file modification date; otherwise, MinValue if no date was specified.

◆ set_ReadDate()

void Aspose::Email::Mime::ContentDisposition::set_ReadDate ( System::DateTime  value)

Sets the read date.

A DateTime value that indicates the file read date; otherwise, MinValue if no date was specified.

◆ set_Size()

void Aspose::Email::Mime::ContentDisposition::set_Size ( int64_t  value)

Sets the size of a file attachment.

A Int32 that specifies the number of bytes in the file attachment.

◆ ToString()

System::String Aspose::Email::Mime::ContentDisposition::ToString ( ) const
override

Returns a System::String that represents this instance.

Returns
A System::String that represents this instance.

Friends And Related Function Documentation

◆ Aspose::Email::MailMessage

friend class Aspose::Email::MailMessage
friend

◆ Aspose::Email::Mime::HeaderCollection