Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ZipArchive.Password Property

Gets or sets the password for an encrypted archive.

Namespace: DevExpress.Compression

Assembly: DevExpress.Docs.v24.2.dll

NuGet Package: DevExpress.Document.Processor

#Declaration

public string Password { get; set; }

#Property Value

Type Description
String

A string that is the password used to encrypt the archive.

#Remarks

If the Password is empty, the encryption is not performed when the archive is saved using the ZipArchive.Save method. When the Password is set to a non-empty value and the ZipItem.EncryptionType is EncryptionType.None, the ZipItem.EncryptionType is automatically set to the EncryptionType.PkZip value.

To extract the content of the encrypted zip item, specify its Password value. If the password is incorrect, the WrongPasswordException fires when the ZipItem.Extract method (or the ZipArchive.Extract method) is called.

See Also