67 references to ZipArchiveMode
BuildBoss (1)
Microsoft.Arcade.Common (6)
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (1)
Microsoft.DotNet.Helix.JobSender (3)
Microsoft.DotNet.Helix.Sdk (1)
Microsoft.DotNet.Internal.SymbolHelper (1)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.SignCheckLibrary (5)
Microsoft.DotNet.SignTool (4)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.ML.Core (2)
Microsoft.ML.TestFramework (1)
netstandard (1)
System.IO.Compression (5)
artifacts\obj\System.IO.Compression\Debug\net10.0\System.IO.Compression.notsupported.cs (5)
96public ZipArchive(System.IO.Stream stream, System.IO.Compression.ZipArchiveMode mode) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Compression); }
97public ZipArchive(System.IO.Stream stream, System.IO.Compression.ZipArchiveMode mode, bool leaveOpen) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Compression); }
98public ZipArchive(System.IO.Stream stream, System.IO.Compression.ZipArchiveMode mode, bool leaveOpen, System.Text.Encoding? entryNameEncoding) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Compression); }
102public System.IO.Compression.ZipArchiveMode Mode { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Compression); } }
103public static System.Threading.Tasks.Task<System.IO.Compression.ZipArchive> CreateAsync(System.IO.Stream stream, System.IO.Compression.ZipArchiveMode mode, bool leaveOpen, System.Text.Encoding? entryNameEncoding, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Compression); }
System.IO.Compression.ZipFile (18)
System\IO\Compression\ZipFile.Create.Async.cs (5)
35public static Task<ZipArchive> OpenReadAsync(string archiveFileName, CancellationToken cancellationToken = default) => OpenAsync(archiveFileName, ZipArchiveMode.Read, cancellationToken);
74public static Task<ZipArchive> OpenAsync(string archiveFileName, ZipArchiveMode mode, CancellationToken cancellationToken = default) => OpenAsync(archiveFileName, mode, entryNameEncoding: null, cancellationToken);
152public static async Task<ZipArchive> OpenAsync(string archiveFileName, ZipArchiveMode mode, Encoding? entryNameEncoding, CancellationToken cancellationToken = default)
437ZipArchive archive = await OpenAsync(destinationArchiveFileName, ZipArchiveMode.Create, entryNameEncoding, cancellationToken).ConfigureAwait(false);
451ZipArchive archive = await ZipArchive.CreateAsync(destination, ZipArchiveMode.Create, leaveOpen: true, entryNameEncoding, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFile.Create.cs (9)
31public static ZipArchive OpenRead(string archiveFileName) => Open(archiveFileName, ZipArchiveMode.Read);
68public static ZipArchive Open(string archiveFileName, ZipArchiveMode mode) => Open(archiveFileName, mode, entryNameEncoding: null);
144public static ZipArchive Open(string archiveFileName, ZipArchiveMode mode, Encoding? entryNameEncoding)
413using ZipArchive archive = Open(destinationArchiveFileName, ZipArchiveMode.Create, entryNameEncoding);
422using ZipArchive archive = new ZipArchive(destination, ZipArchiveMode.Create, leaveOpen: true, entryNameEncoding);
464private static FileStream GetFileStreamForOpen(ZipArchiveMode mode, string archiveFileName, bool useAsync)
470ZipArchiveMode.Read => (FileMode.Open, FileAccess.Read, FileShare.Read),
471ZipArchiveMode.Create => (FileMode.CreateNew, FileAccess.Write, FileShare.None),
472ZipArchiveMode.Update => (FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None),
System.IO.Packaging (13)