.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

ZipArchive.AddFile Method

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