[]
        
(Showing Draft Content)

C1.Zip.C1ZipEntryCollection

C1ZipEntryCollection Class

A collection of C1ZipEntry objects that represent the contents of a zip file.

Inheritance
C1ZipEntryCollection
Namespace: C1.Zip
Assembly: C1.Zip.dll
Syntax
public class C1ZipEntryCollection : List<C1ZipEntry>, IList<C1ZipEntry>, ICollection<C1ZipEntry>, IList, ICollection, IReadOnlyList<C1ZipEntry>, IReadOnlyCollection<C1ZipEntry>, IEnumerable<C1ZipEntry>, IEnumerable
Remarks

Use the C1ZipEntryCollection to programmatically manage the contents of zip files. You can add, remove, extract, or insert items into the C1ZipEntryCollection.

Properties

Name Description
this[string]

Gets the C1ZipEntry with the given name (returns null if the entry cannot be found).

Methods

Name Description
Add(Stream, string)

Adds a stream to the current zip file.

Add(Stream, string, DateTime)

Adds a stream to the current zip file.

Add(string)

Adds an entry to the current zip file.

Add(string, int)

Adds an entry to the current zip file.

Add(string, string)

Adds an entry to the current zip file.

Add(string, string, DateTime)

Adds an entry to the current zip file.

Add(string[])

Adds a list of entries to the current zip file.

AddAsync(Stream, string)

Asynchronous adds a stream to the current zip file.

AddAsync(Stream, string, DateTime)

Asynchronous adds a stream to the current zip file.

AddAsync(string)

Asynchronous adds an entry to the current zip file.

AddAsync(string, int)

Asynchronous adds an entry to the current zip file.

AddAsync(string, string)

Asynchronous adds an entry to the current zip file.

AddAsync(string, string, DateTime)

Asynchronous adds an entry to the current zip file.

AddAsync(string[])

Adds a list of entries to the current zip file.

AddFolder(string)

Adds the content of a folder to the current zip file.

AddFolder(string, string)

Adds the content of a folder to the current zip file.

AddFolder(string, string, bool)

Adds the content of a folder to the current zip file.

Contains(string)

Determines whether the collection contains an entry with a given name.

Extract(int)

Extracts a file from the current zip file.

Extract(int, string)

Extracts a file from the current zip file.

Extract(string)

Extracts a file from the current zip file.

Extract(string, string)

Extracts a file from the current zip file.

ExtractAsync(int)

Asynchronous extracts a file from the current zip file.

ExtractAsync(int, string)

Asynchronous extracts a file from the current zip file.

ExtractAsync(string)

Asynchronous extracts a file from the current zip file.

ExtractAsync(string, string)

Asynchronous extracts a file from the current zip file.

ExtractFolder(string)

Extracts the contents of the zip file into a specified path.

IndexOf(string)

Gets the index of the entry with the specified name.

OpenWriter(string, bool)

Opens a stream for writing an entry into the zip file.

OpenWriter(string, DateTime, bool)

Opens a stream for writing an entry into the zip file.

Remove(int)

Removes an entry from the current zip file.

Remove(int[])

Removes several entries from the current zip file.

Remove(string)

Removes an entry from the current zip file.

Remove(string[])

Removes several entries from the current zip file.