Skip to content

KnownMimeTypes.Get method

Gets the MIME type for a given file using information in the Win32 HKEY_CLASSES_ROOT registry key.

public static string Get(string path)
parameter description
path The file name whose MIME type will be determined. Only its extension part will be used.

Return Value

The determined mime type for the given file, or application/octet-stream otherwise.

See Also