MimeType.GetMimeType Method 

IT Hit WebDAV for .NET

Returns the mime type corresponding to file extension.

[Visual Basic]
Public Shared Function GetMimeType( _
   ByVal extension As String _
) As String
[C#]
public static string GetMimeType(
   string extension
);

Parameters

extension
File extension.

Return Value

String representing mime-type or null if mime-type was not found for the specified extension.

See Also

MimeType Class | ITHit.WebDAV.Server Namespace