Skip to main content

ZipItem.Name Property

Gets or sets the name of the zip item.

Namespace: DevExpress.Compression

Assembly: DevExpress.Docs.v23.2.dll

NuGet Package: DevExpress.Document.Processor

Declaration

public string Name { get; set; }

Property Value

Type Description
String

A string that is the name of the zip item.

Remarks

The Name value is used to search for the zip item by using the ZipArchive.Item method or to remove the item by using the ZipArchive.RemoveItem method. When a zip item is extracted to a file by using the ZipItem.Extract or the ZipArchive.Extract method, the Name value is used to construct a file name.

When a ZipArchive.AddFile or the ZipArchive.AddDirectory methods are used to add a zip item to the archive, the Name is set to the file (directory) path without the root component. In this situation, the ZipFileItem.FileName property contains the full file path, including the root component.

See Also