UpdateEntry Method (entryName, stream)

DotNetZip

Ionic Zip Library v1.9.1.6 UpdateEntry Method (entryName, stream)
ReferenceIonic.ZipZipFileUpdateEntry(String, Stream)
Updates the given entry in the ZipFile, using the given stream as input, and the given filename and given directory Path.
Declaration Syntax
C# Visual Basic Visual C++
public ZipEntry UpdateEntry(
	string entryName,
	Stream stream
)
Public Function UpdateEntry ( _
	entryName As String, _
	stream As Stream _
) As ZipEntry
public:
ZipEntry^ UpdateEntry(
	String^ entryName, 
	Stream^ stream
)
Parameters
entryName (String)
The name, including any path, to use within the archive for the entry.
stream (Stream)
The input stream from which to read file data.
Return Value
The ZipEntry added.
Remarks

Calling the method is equivalent to calling RemoveEntry() if an entry by the same name already exists, and then calling AddEntry() with the given fileName and stream.

The stream must be open and readable during the call to ZipFile.Save. You can dispense the stream on a just-in-time basis using the InputStream property. Check the documentation of that property for more information.

For ZipFile properties including Encryption, Password, SetCompression, ProvisionalAlternateEncoding, ExtractExistingFile, ZipErrorAction, and CompressionLevel, their respective values at the time of this call will be applied to the ZipEntry added.

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