ZipItem.Rename Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9448)
Rename(String)
Renames the current ZipItem.
Declaration
public override void Rename(string newName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | newName | A new name to be set (name only, not a path). |
Overrides
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| ArgumentException |
|
| InvalidOperationException | Archive is not opened for writing. -or- Attempt to rename the root directory of the archive. -or- The item is already deleted. |
| ObjectDisposedException | Archive was already disposed. |
| IOException | An I/O error occurred. |
| ZipException | Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information). |