Show / Hide Table of Contents

Class ZipArchive

Inheritance
System.Object
ZipArchive
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FastReport.Utils
Assembly: FastReport.OpenSource.dll
Syntax
public class ZipArchive

Constructors

ZipArchive()

Creates the new zip archive.

Declaration
public ZipArchive()

Properties

Comment

Gets or sets the commentary to the archive.

Declaration
public string Comment { get; set; }
Property Value
Type Description
System.String

Errors

Gets or sets the errors.

Declaration
public string Errors { get; set; }
Property Value
Type Description
System.String

FileCount

Gets count of files in archive.

Declaration
public int FileCount { get; }
Property Value
Type Description
System.Int32

RootFolder

Gets or sets the Root Folder.

Declaration
public string RootFolder { get; set; }
Property Value
Type Description
System.String

Methods

AddDir(String)

Adds all files from directory (recursive) on the disk to the archive.

Declaration
public void AddDir(string DirName)
Parameters
Type Name Description
System.String DirName

AddFile(String)

Adds the file form disk to the archive.

Declaration
public void AddFile(string FileName)
Parameters
Type Name Description
System.String FileName

AddStream(String, Stream)

Adds the stream to the archive.

Declaration
public void AddStream(string fileName, Stream stream)
Parameters
Type Name Description
System.String fileName
System.IO.Stream stream

Clear()

Clear all files in archive.

Declaration
public void Clear()

FileExists(String)

Check for exisiting file in archive.

Declaration
public bool FileExists(string FileName)
Parameters
Type Name Description
System.String FileName
Returns
Type Description
System.Boolean

SaveToFile(String)

Creates the ZIP archive and writes it to the file.

Declaration
public void SaveToFile(string FileName)
Parameters
Type Name Description
System.String FileName

SaveToStream(Stream)

Creates the zip and writes it to rhe Stream

Declaration
public void SaveToStream(Stream Stream)
Parameters
Type Name Description
System.IO.Stream Stream
Back to top Generated by DocFX