| MimeTypesGetMimeType Method |
Get the MIME-type of a file.
Namespace: MimeKitAssembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax public 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