FileTypeFromExtension Method
Maps file extension to file type.

Namespace: GroupDocs.Parser.Options
Assembly: GroupDocs.Parser (in GroupDocs.Parser.dll) Version: 21.5.0
Syntax
public static FileType FromExtension(
	string extension
)

Parameters

extension
Type: SystemString
File extension (including the period ".").

Return Value

Type: FileType
When file type is supported returns it, otherwise returns default Unknown file type.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when extension is null or empty string.
See Also