| MimeTypesTryGetExtension Method |
Get the standard file extension for a MIME-type.
Namespace: MimeKitAssembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax public static bool TryGetExtension(
string mimeType,
out string extension
)
Parameters
- mimeType String
- The MIME-type.
- extension String
- The file name extension for the specified MIME-type.
Return Value
Booleantrue if the extension is known for the specified MIME-type; otherwise,
false.
Exceptions Remarks
Gets the standard file extension for a MIME-type.
See Also