MediaTypeDetectorDetect Method (String)
Detects the media type by the fileName.

Namespace: GroupDocs.Parser.Detectors.MediaType
Assembly: GroupDocs.Parser (in GroupDocs.Parser.dll) Version: 19.5
Syntax
public virtual string Detect(
	string fileName
)

Parameters

fileName
Type: SystemString
The name of the file.

Return Value

Type: String
A string with the media type if the media type is detected; otherwise, null.
See Also