UtilFileTypeGetFileTypeMatch(FileInfo, FileType) Method
Determines whether a file type signature is match in the file header of the specified file,
then returns a success percentage from 0% to 100%
where 100% means all the file signatures were found in the file header.
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.
No code example is currently available or this language may not be supported.
- file FileInfo
-
The source file.
- filetype FileType
-
A FileType to match in the file header.
FileTypeMatch
Returns a
FileTypeMatch that contains the match result with
the success percentage from
0% to
100%
where
100% means all the file signatures were found in the file header.
This is a code example.
No code example is currently available or this language may not be supported.
Dim signature As New FileSignature({26, 69, 223, 163}, offset:=0, description:="Matroska - Magic Number")
Dim filetype As New FileType(signature, "Matroska stream (generic)", "mkv", "video/x-matroska")
Dim file As New FileInfo("C:\File.mkv")
Dim match As FileTypeMatch = GetFileTypeMatch(file, filetype)
Console.WriteLine("File ""{0}"" Is File Type Of ""{1}""?: {2}%", file.Name, filetype.Name, match.PercentMatch)
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.