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