
## MimeType class

Represents an Internet Media Types



The MimeType type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [__init__](/html/python-net/aspose.html/mimetype/__init__/#str) | Initializes a new instance of MIME type based on serialized string value. |


### Properties
| Property | Description |
| :- | :- |
| [type](/html/python-net/aspose.html/mimetype/type) | Gets the media type. |
| [sub_type](/html/python-net/aspose.html/mimetype/sub_type) | Gets the sub media type. |


### Methods
| Method | Description |
| :- | :- |
| [equals](/html/python-net/aspose.html/mimetype/equals/#aspose.html.MimeType) | Indicates whether the current object is equal to another object of the same type. |
| [from_file_extension](/html/python-net/aspose.html/mimetype/from_file_extension/#str) | Creates a new MIME type based on file extension. |



### See Also
* module [`aspose.html`](..)
