System.IO.Compression.ZipArchiveFile.Delete C# (CSharp) Méthode

Delete() public méthode

Delete the archiveFile represented by the ZipArchiveFile. The textStream can be in use without conflict. Deleting a textStream simply means it will not be persisted when ZipArchive.Close() is called.
public Delete ( ) : void
Résultat void
        public void Delete()
        {
            if (IsReadOnly)
            {
                throw new InvalidOperationException("Archive is ReadOnly");
            }

            _archive.Entries.Remove(_name);
            _name = null;
            _archive = null;
            _uncompressedData = null;
            _compressedData = null;
        }