[]
        
(Showing Draft Content)

C1.Zip.C1ZipEntryCollection.AddFolder

AddFolder Method

AddFolder(string)

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

Declaration
public void AddFolder(string path)
Parameters
Type Name Description
string path

The full path of the folder to be added to the zip file.

Remarks

This method adds all files and sub folders to the zip file.

AddFolder(string, string)

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

Declaration
public void AddFolder(string path, string searchPattern)
Parameters
Type Name Description
string path

The full path of the folder to be added to the zip file.

string searchPattern

A mask that specifies which files to add.

Remarks

If the folder contains sub folders, those are also added to the zip file.

AddFolder(string, string, bool)

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

Declaration
public void AddFolder(string path, string searchPattern, bool includeSubfolders)
Parameters
Type Name Description
string path

The full path of the folder to be added to the zip file.

string searchPattern

A mask that specifies which files to add.

bool includeSubfolders

True to include sub folders, false to include only files at the root level.