UtilFileTypeGetFileTypeMatches(String, FileType) Method

Tries to detect the file type of the specified file by analyzing a collection of file type signatures on the file header, then returns a ListT that contains the success percentage (0%...100%) of each file type found (if any).

Definition

Namespace: DevCase.Core.IO.FileSystem
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static List<FileTypeMatch> GetFileTypeMatches(
	string filepath,
	FileType[] filetypes
)

Parameters

filepath  String
The source file.
filetypes  FileType
A set of file types to match in the file header.

Return Value

ListFileTypeMatch
A ListT which contains the match results of the file types that were found (if any) in the file header.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also