Comment
ZipPackage.Comment property
Gets or sets the ZIP archive comment created by a user.
public string Comment { get; set; }
Property Value
The user’s comment.
Examples
The following code snippet shows how to remove the user comment from a ZIP archive.
using (Metadata metadata = new Metadata(Constants.InputZip))
{
var root = metadata.GetRootPackage<ZipRootPackage>();
root.ZipPackage.Comment = null;
metadata.Save(Constants.OutputZip);
}
See Also
- class ZipPackage
- namespace GroupDocs.Metadata.Formats.Archive
- assembly GroupDocs.Metadata