## ContentType class

Represents a Content-Type header.

```csharp
public class ContentType
```

## Constructors

| Name | Description |
| --- | --- |
| [ContentType](contenttype/#constructor)() | Initializes a new instance of the `ContentType` class. |
| [ContentType](contenttype/#constructor_1)(string) | Initializes a new instance of the `ContentType` class. |

## Properties

| Name | Description |
| --- | --- |
| [Boundary](../../aspose.email.mime/contenttype/boundary/) { get; set; } | Gets or sets the value of the boundary parameter included in the Content-Type header. |
| [CharSet](../../aspose.email.mime/contenttype/charset/) { get; set; } | Gets or sets the value of the charset parameter. |
| [MediaType](../../aspose.email.mime/contenttype/mediatype/) { get; set; } | Gets or sets the internet media type. |
| [Name](../../aspose.email.mime/contenttype/name/) { get; set; } | Gets or sets the value of the name parameter. |
| [Parameters](../../aspose.email.mime/contenttype/parameters/) { get; } | Gets the dictionary that contains the parameters. |

## Methods

| Name | Description |
| --- | --- |
| override [Equals](../../aspose.email.mime/contenttype/equals/)(object) | Determines whether the specified Object is equal to this instance. |
| override [GetHashCode](../../aspose.email.mime/contenttype/gethashcode/)() | Returns a hash code for this instance. |
| override [ToString](../../aspose.email.mime/contenttype/tostring/)() | Returns a String that represents this instance. |

### See Also

* namespace [Aspose.Email.Mime](../../aspose.email.mime/)
* assembly [Aspose.Email](../../)


