UpdateItem Method (itemName)

DotNetZip

Ionic Zip Library v1.9.1.6 UpdateItem Method (itemName)
ReferenceIonic.ZipZipFileUpdateItem(String)
Add or update a file or directory in the zip archive.
Declaration Syntax
C# Visual Basic Visual C++
public void UpdateItem(
	string itemName
)
Public Sub UpdateItem ( _
	itemName As String _
)
public:
void UpdateItem(
	String^ itemName
)
Parameters
itemName (String)
the path to the file or directory to be added or updated.
Remarks

This is useful when the application is not sure or does not care if the item to be added is a file or directory, and does not know or does not care if the item already exists in the ZipFile. Calling this method is equivalent to calling RemoveEntry() if an entry by the same name already exists, followed calling by AddItem().

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)