Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.

 

Class ZipFile

Inheritance
System.Object
ZipFile
Implements
System.Collections.Generic.IEnumerable<ZipEntry>
System.Collections.IEnumerable
System.IDisposable
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: EPiServer.BaseLibrary.IO.Compression.Zip
Assembly: EPiServer.BaseLibrary.dll
Version: 7.19.2
Syntax
[Obsolete("API is not supported and will be removed")]
public class ZipFile : IEnumerable<ZipEntry>, IEnumerable, IDisposable

Constructors

ZipFile(String)

Declaration
public ZipFile(string NewZipFileName)
Parameters
Type Name Description
System.String NewZipFileName

Properties

Item[String]

Declaration
public ZipEntry this[string filename] { get; }
Parameters
Type Name Description
System.String filename
Property Value
Type Description
ZipEntry

Name

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

TrimVolumeFromFullyQualifiedPaths

Declaration
public bool TrimVolumeFromFullyQualifiedPaths { get; set; }
Property Value
Type Description
System.Boolean

Methods

AddDirectory(String)

Declaration
public void AddDirectory(string DirectoryName)
Parameters
Type Name Description
System.String DirectoryName

AddDirectory(String, String, Boolean)

Declaration
public void AddDirectory(string directoryName, string directoryNameInArchive, bool WantVerbose)
Parameters
Type Name Description
System.String directoryName
System.String directoryNameInArchive
System.Boolean WantVerbose

AddFile(String)

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

AddFile(String, String, Boolean)

Declaration
public void AddFile(string fileName, string fileNameInArchive, bool WantVerbose)
Parameters
Type Name Description
System.String fileName
System.String fileNameInArchive
System.Boolean WantVerbose

Dispose()

Declaration
public void Dispose()

Dispose(Boolean)

Declaration
protected virtual void Dispose(bool disposeManagedResources)
Parameters
Type Name Description
System.Boolean disposeManagedResources

Extract(String)

Declaration
public void Extract(string filename)
Parameters
Type Name Description
System.String filename

Extract(String, Stream)

Declaration
public void Extract(string filename, Stream s)
Parameters
Type Name Description
System.String filename
System.IO.Stream s

ExtractAll(String)

Declaration
public void ExtractAll(string path)
Parameters
Type Name Description
System.String path

ExtractAll(String, ZipEntry.DirectoryCreatedDelegate)

Declaration
public void ExtractAll(string path, ZipEntry.DirectoryCreatedDelegate directoryCreatedCallback)
Parameters
Type Name Description
System.String path
ZipEntry.DirectoryCreatedDelegate directoryCreatedCallback

ExtractAll(String, ZipEntry.DirectoryCreatedDelegate, Boolean)

Declaration
public void ExtractAll(string path, ZipEntry.DirectoryCreatedDelegate directoryCreatedCallback, bool WantVerbose)
Parameters
Type Name Description
System.String path
ZipEntry.DirectoryCreatedDelegate directoryCreatedCallback
System.Boolean WantVerbose

Finalize()

Declaration
protected void Finalize()

GetEnumerator()

Declaration
public IEnumerator<ZipEntry> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<ZipEntry>

Read(Stream, Boolean)

Declaration
public static ZipFile Read(Stream stream, bool TurnOnDebug)
Parameters
Type Name Description
System.IO.Stream stream
System.Boolean TurnOnDebug
Returns
Type Description
ZipFile

Read(String)

This will throw if the zipfile does not exist.

Declaration
public static ZipFile Read(string zipfilename)
Parameters
Type Name Description
System.String zipfilename
Returns
Type Description
ZipFile

Read(String, Boolean)

This will throw if the zipfile does not exist.

Declaration
public static ZipFile Read(string zipfilename, bool TurnOnDebug)
Parameters
Type Name Description
System.String zipfilename
System.Boolean TurnOnDebug
Returns
Type Description
ZipFile

Save()

Declaration
public void Save()

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IDisposable