 | MimeTypesTryGetExtension Method |
Get the standard file extension for a MIME-type.
Namespace:
MimeKit
Assembly:
MimeKit (in MimeKit.dll) Version: 3.0.0
Syntaxpublic static bool TryGetExtension(
string mimeType,
out string extension
)
Parameters
- mimeType
- Type: SystemString
The MIME-type. - extension
- Type: SystemString
The file name extension for the specified MIME-type.
Return Value
Type:
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