[]
        
(Showing Draft Content)

C1.Zip.C1ZipEntryCollection.ExtractAsync

ExtractAsync Method

ExtractAsync(int, string)

Asynchronous extracts a file from the current zip file.

Declaration
public Task ExtractAsync(int index, string destFileName)
Parameters
Type Name Description
int index

Index of the entry to extract.

string destFileName

Name and location of the extracted file.

Returns
Type Description
Task

ExtractAsync(string, string)

Asynchronous extracts a file from the current zip file.

Declaration
public Task ExtractAsync(string entryName, string destFileName)
Parameters
Type Name Description
string entryName

Name of the entry to extract.

string destFileName

Name and location of the extracted file.

Returns
Type Description
Task
Examples

To read from the zip archive use ExtractAsync(filePath) and ExtractAsync(stream):

ExtractAsync(int)

Asynchronous extracts a file from the current zip file.

Declaration
public Task ExtractAsync(int index)
Parameters
Type Name Description
int index

Index of the entry to extract.

Returns
Type Description
Task
Remarks

The entry is extracted to a file in the same folder as the current zip file, with the same name as the entry.

ExtractAsync(string)

Asynchronous extracts a file from the current zip file.

Declaration
public Task ExtractAsync(string entryName)
Parameters
Type Name Description
string entryName

Name of the entry to extract.

Returns
Type Description
Task
Remarks

The entry is extracted to a file in the same folder as the current zip file, with the same name as the entry.