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
Exception | Condition |
---|---|
System..::..ArgumentNullException | newName is null. |
System..::..ArgumentException | newName is empty or contains invalid characters. |
System..::..InvalidOperationException | Archive is not opened for writing. -or- Attempt to rename the root directory of the archive. -or- The item is already deleted. |
System..::..ObjectDisposedException | Archive was already disposed. |
System.IO..::..IOException | An I/O error occurred. |
Rebex.IO.Compression..::..ZipException | Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information). |