FileTypeFromExtension Method
Maps file extension to file type.

Namespace: GroupDocs.Signature.Domain
Assembly: GroupDocs.Signature (in GroupDocs.Signature.dll) Version: 21.9.0.0 (21.9)
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