Search Results for

    Show / Hide Table of Contents

    TZippyReader.TryOpen Method

    Tries to open a zip file and load the contents. If the file is invalid no Exception will be thrown. Note that other exceptions like a disk read error will still be raised. You can use this method instead of "if (TZippyReader.IsZipValid(stream)) TZippyReader.Open(stream)" as it will be faster because it doesn't have to read the file twice.

    Syntax

    Namespace: FlexCel.Core

    public Boolean TryOpen(Stream aStream, Boolean aOwnsStream)

    Parameters

    <-> Parameter Type Description
    aStream Stream Stream that contains the file to load.
    aOwnsStream Boolean If true, aStream will be destroyed when you destroy this object. If false, no attempt to free the Stream will be done

    See also

    • TZippyReader
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com