44 references to Read
Aspire.Dashboard (1)
Model\TelemetryImportService.cs (1)
95using var archive = new ZipArchive(stream, ZipArchiveMode.Read, leaveOpen: true);
Aspire.Dashboard.Tests (4)
Model\TelemetryExportServiceTests.cs (4)
647using var archive = new ZipArchive(memoryStream, ZipArchiveMode.Read); 718using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read); 776using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read); 829using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read);
BuildBoss (1)
OptProfCheckerUtil.cs (1)
101using (var archive = new ZipArchive(File.Open(vsixFullPath, FileMode.Open), ZipArchiveMode.Read))
Microsoft.Arcade.Common (1)
NupkgInfoFactory.cs (1)
32ZipArchive zipArchive = new(stream, ZipArchiveMode.Read);
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\GenerateTrainingInputFiles.cs (1)
99using (var archive = new ZipArchive(File.Open(vsixPath, FileMode.Open), ZipArchiveMode.Read))
Microsoft.DotNet.Internal.SymbolHelper (1)
SymbolUploadHelper.cs (1)
273using ZipArchive archive = ZipFile.Open(packagePath, ZipArchiveMode.Read);
Microsoft.DotNet.NuGetRepack.Tests (2)
ReplacePackagePartsTests.cs (1)
43using (var archive = new ZipArchive(File.Open(task.NewPackage, FileMode.Open, FileAccess.Read), ZipArchiveMode.Read))
VersionUpdaterTests.cs (1)
23using (var package = new ZipArchive(new MemoryStream(packageBytes), ZipArchiveMode.Read))
Microsoft.DotNet.SignCheckLibrary (4)
Verification\Jar\JarManifestFile.cs (1)
41using (ZipArchive archive = ZipFile.Open(ArchivePath, ZipArchiveMode.Read))
Verification\Jar\JarManifestFileBase.cs (1)
93using (ZipArchive archive = ZipFile.Open(ArchivePath, ZipArchiveMode.Read))
Verification\Jar\JarUtils.cs (1)
25using (ZipArchive archive = ZipFile.Open(archivePath, ZipArchiveMode.Read))
Verification\ZipVerifier.cs (1)
23using (var archive = new ZipArchive(File.OpenRead(archivePath), ZipArchiveMode.Read, leaveOpen: false))
Microsoft.DotNet.SignTool (2)
src\VerifySignatures.cs (1)
172using var archive = new ZipArchive(File.OpenRead(filePath), ZipArchiveMode.Read, leaveOpen: false);
src\ZipData.cs (1)
205using (var archive = new ZipArchive(File.OpenRead(archivePath), ZipArchiveMode.Read, leaveOpen: false))
Microsoft.ML.Core (1)
Data\Repository.cs (1)
466_archive = new ZipArchive(stream, ZipArchiveMode.Read, true);
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
1058using (var zip = new ZipArchive(strm, ZipArchiveMode.Read))
System.IO.Compression (14)
System\IO\Compression\ZipArchive.Async.cs (2)
94case ZipArchiveMode.Read: 148case ZipArchiveMode.Read:
System\IO\Compression\ZipArchive.cs (5)
49public ZipArchive(Stream stream) : this(stream, ZipArchiveMode.Read, leaveOpen: false, entryNameEncoding: null) { } 150case ZipArchiveMode.Read: 300case ZipArchiveMode.Read: 435if (_mode == ZipArchiveMode.Read) 954case ZipArchiveMode.Read:
System\IO\Compression\ZipArchiveEntry.Async.cs (3)
29case ZipArchiveMode.Read: 49/// <item><description><see cref="ZipArchiveMode.Read"/>: Only <see cref="FileAccess.Read"/> is allowed.</description></item> 70case ZipArchiveMode.Read:
System\IO\Compression\ZipArchiveEntry.cs (4)
296if (_archive.Mode == ZipArchiveMode.Read) 370case ZipArchiveMode.Read: 389/// <item><description><see cref="ZipArchiveMode.Read"/>: Only <see cref="FileAccess.Read"/> is allowed.</description></item> 409case ZipArchiveMode.Read:
System.IO.Compression.ZipFile (8)
System\IO\Compression\ZipFile.Create.Async.cs (2)
35/// <returns>A task that represents the asynchronous operation. The task result is an opened <see cref="ZipArchive"/> in <see cref="ZipArchiveMode.Read"/> mode.</returns> 36public static Task<ZipArchive> OpenReadAsync(string archiveFileName, CancellationToken cancellationToken = default) => OpenAsync(archiveFileName, ZipArchiveMode.Read, cancellationToken);
System\IO\Compression\ZipFile.Create.cs (2)
31public static ZipArchive OpenRead(string archiveFileName) => Open(archiveFileName, ZipArchiveMode.Read); 475ZipArchiveMode.Read => (FileMode.Open, FileAccess.Read, FileShare.Read),
System\IO\Compression\ZipFile.Extract.Async.cs (2)
201ZipArchive archive = await OpenAsync(sourceArchiveFileName, ZipArchiveMode.Read, entryNameEncoding, cancellationToken).ConfigureAwait(false); 359ZipArchive archive = await ZipArchive.CreateAsync(source, ZipArchiveMode.Read, leaveOpen: true, entryNameEncoding, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFile.Extract.cs (2)
185using (ZipArchive archive = Open(sourceArchiveFileName, ZipArchiveMode.Read, entryNameEncoding)) 328using ZipArchive archive = new ZipArchive(source, ZipArchiveMode.Read, leaveOpen: true, entryNameEncoding);
System.IO.Packaging (3)
System\IO\Packaging\ZipPackage.cs (3)
322zipArchiveMode = ZipArchiveMode.Read; 392zipArchiveMode = ZipArchiveMode.Read; 783if (_zipArchive.Mode == ZipArchiveMode.Read || _zipArchive.Mode == ZipArchiveMode.Update)