Indicates whether the password is valid for specified encrypted file in archive.
[C#]
public bool IsFilePasswordValid(string fileName, string password);
[VB.NET]
Public Function IsFilePasswordValid(ByVal fileName As String, ByVal password As String) As Boolean
Description
Use IsFilePasswordValid to determine whether the password is valid for specified file in archive.
The fileName parameter specifies file name being tested.
The password parameter is a password to check.
Note: If the file is not encrypted then any password string is valid. To determine whether the file is encrypted use FindFirst method and check Encrypted field of ArchiveItem class.