Item Property (ix)

DotNetZip

Ionic Zip Library v1.9.1.6 Item Property (ix)
ReferenceIonic.ZipZipFileItem[([( Int32])])
This is an integer indexer into the Zip archive.
Declaration Syntax
C# Visual Basic Visual C++
public ZipEntry this[
	int ix
] { get; }
Public ReadOnly Default Property Item ( _
	ix As Integer _
) As ZipEntry
	Get
public:
property ZipEntry^ default[int ix] {
	ZipEntry^ get (int ix);
}
Parameters
ix (Int32)
Return Value
The ZipEntry within the Zip archive at the specified index. If the entry does not exist in the archive, this indexer throws.
Remarks

This property is read-only.

Internally, the ZipEntry instances that belong to the ZipFile are stored in a Dictionary. When you use this indexer the first time, it creates a read-only List<ZipEntry> from the Dictionary.Values Collection. If at any time you modify the set of entries in the ZipFile, either by adding an entry, removing an entry, or renaming an entry, a new List will be created, and the numeric indexes for the remaining entries may be different.

This means you cannot rename any ZipEntry from inside an enumeration of the zip file.

The index value.

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