UpdateEntry Method (entryName, content, encoding)

DotNetZip

Ionic Zip Library v1.9.1.6 UpdateEntry Method (entryName, content, encoding)
ReferenceIonic.ZipZipFileUpdateEntry(String, String, Encoding)
Updates the given entry in the ZipFile, using the given string as content for the ZipEntry.
Declaration Syntax
C# Visual Basic Visual C++
public ZipEntry UpdateEntry(
	string entryName,
	string content,
	Encoding encoding
)
Public Function UpdateEntry ( _
	entryName As String, _
	content As String, _
	encoding As Encoding _
) As ZipEntry
public:
ZipEntry^ UpdateEntry(
	String^ entryName, 
	String^ content, 
	Encoding^ encoding
)
Parameters
entryName (String)
The name, including any path, to use within the archive for the entry.
content (String)
The content of the file, should it be extracted from the zip.
encoding (Encoding)
The text encoding to use when encoding the string. Be aware: This is distinct from the text encoding used to encode the filename. See AlternateEncoding.
Return Value
The ZipEntry added.
Remarks
Calling this method is equivalent to removing the ZipEntry for the given file name and directory path, if it exists, and then calling AddEntry(String, String, Encoding). See the documentation for that method for further explanation.

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)