FileType Methods |
The FileType type exposes the following members.
Name | Description | |
---|---|---|
Equals(Object) |
Determines whether the current FileType is the same as specified object.
(Overrides ObjectEquals(Object).) | |
Equals(FileType) | ||
FromExtension |
Maps file extension to file type.
| |
FromFilePath |
Extracts file extension and maps it to file type.
| |
FromMediaType |
Maps file media type to file type e.g. 'application/pdf' will be mapped to PDF.
| |
FromStream(Stream) |
Detects file type by reading the file signature.
| |
FromStream(Stream, ILogger) |
Detects file type by reading the file signature.
| |
FromStream(Stream, String) |
Detects file type by reading the file signature.
| |
FromStream(Stream, String, ILogger) |
Detects file type by reading the file signature.
| |
GetHashCode |
Returns the hash code for the current FileType object.
(Overrides ObjectGetHashCode.) | |
GetSupportedFileTypes |
Retrieves supported file types
| |
GetType | (Inherited from Object.) | |
ToString |
Returns a string that represents the current object.
(Overrides ObjectToString.) |