Gets or sets a password. Null reference (Nothing in Visual Basic) means don't encrypt newly added files.

Namespace:  Rebex.IO.Compression
Assembly:  Rebex.Zip (in Rebex.Zip.dll)

Syntax

Visual Basic
Public Property Password As String
	Get
	Set
C#
public string Password { get; set; }

Field Value

Password.

Remarks

If the password is set to a null reference (Nothing in Visual Basic) the PasswordRequired event is fired when extracting encrypted file.

Exceptions

ExceptionCondition
Rebex.IO.Compression..::..ZipExceptionPassword cannot be encoded using the current charset.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also