Represents a Content-Type header. More...
Inherits Object.
Public Member Functions | |
| System::String | get_Boundary () |
| Gets the value of the boundary parameter included in the Content-Type header. More... | |
| void | set_Boundary (System::String value) |
| Sets the value of the boundary parameter included in the Content-Type header. More... | |
| System::String | get_CharSet () |
| Gets the value of the charset parameter. More... | |
| void | set_CharSet (System::String value) |
| Sets the value of the charset parameter. More... | |
| System::String | get_MediaType () |
| Gets the internet media type. More... | |
| void | set_MediaType (System::String value) |
| Sets the internet media type. More... | |
| System::String | get_Name () |
| Gets the value of the name parameter. More... | |
| void | set_Name (System::String value) |
| Sets the value of the name parameter. More... | |
| System::SharedPtr< TrackingStringDictionary > | get_Parameters () |
| Gets the dictionary that contains the parameters. More... | |
| bool | get_IsChanged () |
| Gets a value indicating whether content type is changed. More... | |
| bool | get_CreatedManually () const |
| ContentType () | |
| Initializes a new instance of the ContentType class. More... | |
| ContentType (System::String contentType) | |
| Initializes a new instance of the ContentType class. More... | |
| ContentType (System::String contentType, bool createdManually) | |
| 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... | |
| void | Set (System::String contentType, System::SharedPtr< HeaderCollection > headers) |
| void | PersistIfNeeded (System::SharedPtr< HeaderCollection > headers, bool forcePersist) |
| System::SharedPtr< ContentType > | Clone () |
| System::String | ToString () const override |
| Returns a System::String that represents this instance. More... | |
Public Attributes | |
| System::SharedPtr< TrackingStringDictionary > | parameters |
Friends | |
| class | Aspose::Email::MailMessage |
| class | Aspose::Email::Mime::HeaderCollection |
| class | Aspose::Email::Mime::MimePart |
Represents a Content-Type header.
| Aspose::Email::Mime::ContentType::ContentType | ( | ) |
Initializes a new instance of the ContentType class.
| Aspose::Email::Mime::ContentType::ContentType | ( | System::String | contentType | ) |
Initializes a new instance of the ContentType class.
| contentType | Type of the content. |
| Aspose::Email::Mime::ContentType::ContentType | ( | System::String | contentType, |
| bool | createdManually | ||
| ) |
| System::SharedPtr<ContentType> Aspose::Email::Mime::ContentType::Clone | ( | ) |
|
override |
Determines whether the specified System::Object is equal to this instance.
| obj | The System::Object to compare with this instance. |
true if the specified System::Object is equal to this instance; otherwise, false. | System::String Aspose::Email::Mime::ContentType::get_Boundary | ( | ) |
Gets the value of the boundary parameter included in the Content-Type header.
A string that contains the value of boundary parameter.
| System::String Aspose::Email::Mime::ContentType::get_CharSet | ( | ) |
Gets the value of the charset parameter.
A string that contains the value of charset parameter.
| bool Aspose::Email::Mime::ContentType::get_CreatedManually | ( | ) | const |
| bool Aspose::Email::Mime::ContentType::get_IsChanged | ( | ) |
Gets a value indicating whether content type is changed.
true if content type is changed; otherwise, false.
| System::String Aspose::Email::Mime::ContentType::get_MediaType | ( | ) |
Gets the internet media type.
A String that contains the media type.
| System::String Aspose::Email::Mime::ContentType::get_Name | ( | ) |
Gets the value of the name parameter.
A String that contains the name.
| System::SharedPtr<TrackingStringDictionary> Aspose::Email::Mime::ContentType::get_Parameters | ( | ) |
Gets the dictionary that contains the parameters.
A StringDictionary that contains name and value pairs.
|
override |
Returns a hash code for this instance.
| void Aspose::Email::Mime::ContentType::PersistIfNeeded | ( | System::SharedPtr< HeaderCollection > | headers, |
| bool | forcePersist | ||
| ) |
| void Aspose::Email::Mime::ContentType::Set | ( | System::String | contentType, |
| System::SharedPtr< HeaderCollection > | headers | ||
| ) |
| void Aspose::Email::Mime::ContentType::set_Boundary | ( | System::String | value | ) |
Sets the value of the boundary parameter included in the Content-Type header.
A string that contains the value of boundary parameter.
| void Aspose::Email::Mime::ContentType::set_CharSet | ( | System::String | value | ) |
Sets the value of the charset parameter.
A string that contains the value of charset parameter.
| void Aspose::Email::Mime::ContentType::set_MediaType | ( | System::String | value | ) |
Sets the internet media type.
A String that contains the media type.
| void Aspose::Email::Mime::ContentType::set_Name | ( | System::String | value | ) |
Sets the value of the name parameter.
A String that contains the name.
|
override |
Returns a System::String that represents this instance.
|
friend |
|
friend |
|
friend |
| System::SharedPtr<TrackingStringDictionary> Aspose::Email::Mime::ContentType::parameters |