Skip to main content

ZipItem.Password Property

Gets or sets a password used for encrypting the content of a zip item.

Namespace: DevExpress.Compression

Assembly: DevExpress.Docs.v24.1.dll

NuGet Package: DevExpress.Document.Processor

Declaration

public string Password { get; set; }

Property Value

Type Description
String

A string that specifies the password for encryption.

Remarks

When you specify a ZipItem.Password value for the zip item with the ZipItem.EncryptionType set to EncryptionType.None (default value), then the ZipItem.EncryptionType is set to EncryptionType.PkZip automatically.

The Password property enables you to specify a distinct password for each zip item. To set a password for the entire archive, use the ZipArchive.Password property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Password property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also