Links

MimeTypes

Wisej.Core.MimeTypes
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.2.0.0)
Maps document extensions to content MIME types.
C#
VB.NET
public class MimeTypes
Public Class MimeTypes

Methods

GetMimeType(fileName)

Returns the MIME mapping for the specified file name.
Parameter
Type
Description
fileName
String
The file name that is used to determine the MIME type.
Returns: String.

IsKnownType(extension)

Returns if the file extension corresponds to a known mime type.
Parameter
Type
Description
extension
String
The file extension to check.
Returns: Boolean.

SetMimeType(extension, mimeType)

Adds or changes the mime type for the specified file extension.
Parameter
Type
Description
extension
String
The file extension to add to the mime type list.
mimeType
String
The mime type to add to the mime type list.