ParserGetFileInfo Method (String) |
Returns the general information about a file.
Namespace: GroupDocs.ParserAssembly: GroupDocs.Parser (in GroupDocs.Parser.dll) Version: 22.06.0
Syntaxpublic static FileInfo GetFileInfo(
string filePath
)
Public Shared Function GetFileInfo (
filePath As String
) As FileInfo
public:
static FileInfo^ GetFileInfo(
String^ filePath
)
static member GetFileInfo :
filePath : string -> FileInfo
Parameters
- filePath
- Type: SystemString
The path to the file.
Return Value
Type:
FileInfoAn instance of
FileInfo class.
ExamplesThe following code shows how to check whether a file is password-protected:
Options.FileInfo info = Parser.GetFileInfo(filePath);
Console.WriteLine(info.IsEncrypted ? "Password is required" : "");
See Also