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()
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
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
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposeManagedResources)
Parameters
Type |
Name |
Description |
System.Boolean |
disposeManagedResources |
|
Declaration
public void Extract(string filename)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
Declaration
public void Extract(string filename, Stream s)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
System.IO.Stream |
s |
|
Declaration
public void ExtractAll(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Declaration
public void ExtractAll(string path, ZipEntry.DirectoryCreatedDelegate directoryCreatedCallback)
Parameters
Declaration
public void ExtractAll(string path, ZipEntry.DirectoryCreatedDelegate directoryCreatedCallback, bool WantVerbose)
Parameters
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
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
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
Save()
Declaration
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