 | MimeTypesGetMimeType Method |
Get the MIME-type of a file.
Namespace:
MimeKit
Assembly:
MimeKit (in MimeKit.dll) Version: 3.0.0
Syntaxpublic static string GetMimeType(
string fileName
)
Parameters
- fileName
- Type: SystemString
The file name.
Return Value
Type:
StringThe MIME-type.
Exceptions
Remarks
Gets the MIME-type of a file based on the file extension.
See Also