ZipItem.Rename Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9147)
Rename(String)
Renames the current Zip
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 |
---|---|
Argument |
|
Argument |
|
Invalid |
Archive is not opened for writing. -or- Attempt to rename the root directory of the archive. -or- The item is already deleted. |
Object |
Archive was already disposed. |
IOException | An I/O error occurred. |
Zip |
Cannot perform the requested operation, or the operation was canceled
(see Problem |