Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

ZipArchive.AddFile Method

Name Parameters Description
AddFile(String, String) fileName, relativePath Creates a zip file item for the specified file and adds it to the specified path in the archive.
AddFile(String) fileName Creates a zip file item for the specified file and adds it to the archive.