Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​IO.​Compression.​ZipArchiveEntry
Assembly: System.IO.Compression
Inheritance: object → ZipArchiveEntry
Represents a compressed file within a zip archive.
Properties
public
ZipArchive
Archive
Gets the zip archive that the entry belongs to.
public
string
Comment
Gets or sets the optional entry comment.
public
long
CompressedLength
Gets the compressed size, expressed in bytes, of the entry in the zip archive.
public
uint
Crc32
The 32-bit Cyclic Redundant Check.
public
int
ExternalAttributes
OS and application specific file attributes.
public
string
FullName
Gets the relative path of the entry in the zip archive.
public
bool
IsEncrypted
Gets a value that indicates whether the entry is encrypted.
public
DateTimeOffset
LastWriteTime
Gets or sets the last time the entry in the zip archive was changed.
public
long
Length
Gets the uncompressed size, expressed in bytes, of the entry in the zip archive.
public
string
Name
Gets the file name of the entry in the zip archive.
Methods
public
void
Delete​()
Deletes the entry from the zip archive.
Returns The stream that represents the contents of the entry.
public
Threading.​Tasks.​Task<​Stream>
OpenAsync​(Threading.​CancellationToken cancellationToken = null)
Asynchronously opens the entry.
Returns A Stream that represents the contents of the entry.
cancellationToken
The token to monitor for cancellation requests.
public
string
ToString​()
Retrieves the relative path of the entry in the zip archive.
Returns The relative path of the entry, which is the value stored in the <see cref="P:System.IO.Compression.ZipArchiveEntry.FullName" /> property.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object