UtilFileTypeGetFileTypeMatches(FileInfo) Method
Tries to detect the file type of the specified file by analyzing a collection of known 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).
Namespace: DevCase.Core.IO.FileSystemAssembly: 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(
FileInfo file
)
Public Shared Function GetFileTypeMatches (
file As FileInfo
) As List(Of FileTypeMatch)
Dim file As FileInfo
Dim returnValue As List(Of FileTypeMatch)
returnValue = UtilFileType.GetFileTypeMatches(file)
public:
static List<FileTypeMatch^>^ GetFileTypeMatches(
FileInfo^ file
)
static member GetFileTypeMatches :
file : FileInfo -> List<FileTypeMatch>
No code example is currently available or this language may not be supported.
- file FileInfo
-
The source file.
ListFileTypeMatch
A
ListT which contains
the match results of the file types that were found (if any) in the file header.
This is a code example.
No code example is currently available or this language may not be supported.
Dim matches As List(Of FileTypeMatch) = GetFileTypeMatches("C:\Registry File.reg")
If (filetypeMatches.Count <> 0) Then
For Each match As FileTypeMatch In matches
Console.WriteLine("
File Type Name.......: {0}
File Extension.......: {1}
Percent Match........: {2}%
Signature Count......: {3}
Signature Match Count: {4}",
match.FileType.Name, match.FileType.Extension, match.PercentMatch,
match.FileType.Signatures.Count, match.SignatureMatchCount)
Next match
Else
Console.WriteLine("Any file type match found.")
End If
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.