Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Delete()

void System.IO.Compression.ZipArchiveEntry.Delete ( )
inline

Definition at line 510 of file ZipArchiveEntry.cs.

511 {
512 if (_archive != null)
513 {
515 {
516 throw new IOException(System.SR.DeleteOpenEntry);
517 }
518 if (_archive.Mode != ZipArchiveMode.Update)
519 {
520 throw new NotSupportedException(System.SR.DeleteOnlyInUpdate);
521 }
523 _archive.RemoveEntry(this);
524 _archive = null;
526 }
527 }
void RemoveEntry(ZipArchiveEntry entry)
static string DeleteOpenEntry
Definition SR.cs:72
static string DeleteOnlyInUpdate
Definition SR.cs:70
Definition SR.cs:7

References System.IO.Compression.ZipArchiveEntry._archive, System.IO.Compression.ZipArchiveEntry._currentlyOpenForWrite, System.SR.DeleteOnlyInUpdate, System.SR.DeleteOpenEntry, System.IO.Compression.ZipArchive.Mode, System.IO.Compression.ZipArchive.RemoveEntry(), System.IO.Compression.ZipArchive.ThrowIfDisposed(), and System.IO.Compression.ZipArchiveEntry.UnloadStreams().