Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ZipItem.Rename Method

Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9147)

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
ArchiveItem.Rename(String)
Exceptions
Type Condition
ArgumentNullException

newName is null.

ArgumentException

newName is empty or contains invalid characters.

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).

In This Article
  • Rename(String)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies