KnownMimeTypes.Get method
namespace: Serenity.Web assembly: Serenity.Net.Services
Gets MIME type for a given file using information in Win32 HKEY_CLASSES_ROOT registry key.
public static string Get(string path)
parameter | description |
---|---|
path | File name whose MIME type will be determined. Its only extension part will be used. |
Return Value
Determined mime type for given file. "application/unknown" otherwise.
See Also
- class KnownMimeTypes