ComponentOne Zip for .NET 2.0
C1.Zip Assembly / C1.Zip Namespace / C1ZipEntry Class / CheckPassword Method

In This Topic
    CheckPassword Method
    In This Topic
    Checks whether this C1ZipEntry can be read with the currently set password.
    Syntax
    Public Function CheckPassword() As Boolean
    public bool CheckPassword()

    Return Value

    True if the entry can be read with the current password, or if the entry is not encrypted.
    Remarks
    This method is more efficient than using a try/catch block and trying to open the entry to determine whether the current password is valid for the entry.
    See Also