ComponentOne Zip for .NET
AddFolder(String,String,Boolean) Method

C1.C1Zip.4 Assembly > C1.C1Zip Namespace > C1ZipEntryCollection Class > AddFolder Method : AddFolder(String,String,Boolean) Method
The full path of the folder to be added to the zip file.
A mask that specifies which files to add.
True to include sub folders, false to include only files at the root level.
Adds the content of a folder to the current zip file.
Syntax
Public Overloads Sub AddFolder( _
   ByVal path As String, _
   ByVal searchPattern As String, _
   ByVal includeSubfolders As Boolean _
) 
public void AddFolder( 
   string path,
   string searchPattern,
   bool includeSubfolders
)

Parameters

path
The full path of the folder to be added to the zip file.
searchPattern
A mask that specifies which files to add.
includeSubfolders
True to include sub folders, false to include only files at the root level.
See Also

Reference

C1ZipEntryCollection Class
C1ZipEntryCollection Members
Overload List