C# Class CmisSync.Lib.Cmis.MimeType

Utility to find a file's MIME type. The current implementation relies on file extension.
显示文件 Open project: OpenDataSpace/CmisSync

Public Methods

Method Description
GetMIMEType ( string fileName ) : string

Guess the MIME type of a file.

Private Methods

Method Description
MimeType ( ) : System

Initializes static members of the CmisSync.Lib.Cmis.MimeType class.

Method Details

GetMIMEType() public static method

Guess the MIME type of a file.
public static GetMIMEType ( string fileName ) : string
fileName string Relative filename, for instance mydoc.odt
return string