# ZipArchiveEdits

ZIP edits keyed by the original entry's zero-based central-directory ordinal.

Class 

`OfficeIMO.Archives`

**Namespace**

`OfficeIMO.Archives`

**Assembly**

`OfficeIMO.Archives`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[ZipArchiveEditor.cs:119](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ZipArchiveEditor.cs#L119)

**Modifiers**

sealed

ZIP edits keyed by the original entry's zero-based central-directory ordinal.

## Inheritance

- object
- ZipArchiveEdits

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 1

- Method [ZipArchiveEditor.Update](/api/archives/officeimo-archives-ziparchiveeditor/#method-update-string-action-officeimo-archives-ziparchiveedits-officeimo-archives-ziparchivewriteroptions-officeimo-archives-archiveinspectionoptions-threading-cancellationtoken) parameter `configure`

Filter members 

Show inherited

## Methods

`public void Add(ArchiveWriteEntry entry)` [#](#method-add-officeimo-archives-archivewriteentry)

[ZipArchiveEditor.cs:119](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ZipArchiveEditor.cs#L119)

Appends an authored file or directory after the retained members.

Parameters

**entry OfficeIMO.Archives.ArchiveWriteEntry required**

`public void Remove(int ordinal)` [#](#method-remove-int32)

[ZipArchiveEditor.cs:124](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ZipArchiveEditor.cs#L124)

Removes the original entry at this ordinal. Removing a directory record leaves its child entries in place.

Parameters

**ordinal int required**

`public void Rename(int ordinal, string path)` [#](#method-rename-int32-string)

[ZipArchiveEditor.cs:128](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ZipArchiveEditor.cs#L128)

Renames the original entry without recompressing it. Renaming a directory record leaves its child names unchanged.

Parameters

**ordinal int required**

**path string required**

`public void Replace(int ordinal, ArchiveWriteEntry entry)` [#](#method-replace-int32-officeimo-archives-archivewriteentry)

[ZipArchiveEditor.cs:134](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ZipArchiveEditor.cs#L134)

Replaces the original entry with an authored file or directory at its position relative to retained entries.

Parameters

**ordinal int required**

**entry OfficeIMO.Archives.ArchiveWriteEntry required**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public IReadOnlyList<string> Names { get; }` [#](#property-names)

[ZipArchiveEditor.cs:113](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ZipArchiveEditor.cs#L113)

Authored member names in original central-directory order. Directory names end in a separator.

<!-- PowerForge markdown artifact sha256:2989959C4CEC451C3C70C3E38A4880EBAFF6CF1C136B50F41AADF5575030D494 -->
