Renames the current ZipItem.

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

Syntax

Visual Basic
Public Overrides Sub Rename ( _
	newName As String _
)
C#
public override void Rename(
	string newName
)

Parameters

newName
Type: System..::..String
A new name to be set (name only, not a path).

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionnewName is null.
System..::..ArgumentExceptionnewName is empty or contains invalid characters.
System..::..InvalidOperationExceptionArchive is not opened for writing. -or- Attempt to rename the root directory of the archive. -or- The item is already deleted.
System..::..ObjectDisposedExceptionArchive was already disposed.
System.IO..::..IOExceptionAn I/O error occurred.
Rebex.IO.Compression..::..ZipExceptionCannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information).

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also