ZipArchive.Comment Property

Definition

Gets or sets the optional archive comment.

public string Comment { get; set; }

Property Value

Remarks

The comment encoding is determined by the entryNameEncoding parameter of the ZipArchive(Stream, ZipArchiveMode, Boolean, Encoding) constructor.

If the comment byte length is larger than MaxValue, it will be truncated when disposing the archive.

Applies to

Product Versions
.NET 7, 8, 9