System.IO.Compression.ZipArchive.GetEntry C# (CSharp) Метод

GetEntry() публичный Метод

public GetEntry ( string entryName ) : System.IO.Compression.ZipArchiveEntry
entryName string
Результат System.IO.Compression.ZipArchiveEntry
        public System.IO.Compression.ZipArchiveEntry GetEntry(string entryName) { throw null; }
    }

Same methods

ZipArchive::GetEntry ( string entryName ) : ZipArchiveEntry

Usage Example

Пример #1
1
 public string ReadArchive(Stream archiveStream, string path)
 {
     using (var archive = new ZipArchive(archiveStream, ZipArchiveMode.Read))
     {
         var zipArchiveEntry = archive.GetEntry(path);
         using (var stream = zipArchiveEntry.Open())
         using (var reader = new StreamReader(stream))
         {
             var content = reader.ReadToEnd();
             return content;
         }
     }
 }
All Usage Examples Of System.IO.Compression.ZipArchive::GetEntry