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

CopyTo() public méthode

Copy the data in archive textStream named 'inputFilePath' into the 'this' archive textStream, discarding what was there before.
public CopyTo ( string outputArchivePath ) : void
outputArchivePath string The output archive path.
Résultat void
        public void CopyTo(string outputArchivePath)
        {
            using (Stream outFile = _archive.Create(outputArchivePath))
            using (Stream inFile = OpenRead())
                CopyStream(inFile, outFile);
            _archive[outputArchivePath].LastWriteTime = LastWriteTime;
        }