47 references to Create
aspire (2)
src\Shared\Export\ExportArchive.cs (2)
57using var archive = new ZipArchive(fileStream, ZipArchiveMode.Create, leaveOpen: false); 67using var archive = new ZipArchive(stream, ZipArchiveMode.Create, leaveOpen: true);
Aspire.Dashboard (2)
src\Shared\Export\ExportArchive.cs (2)
57using var archive = new ZipArchive(fileStream, ZipArchiveMode.Create, leaveOpen: false); 67using var archive = new ZipArchive(stream, ZipArchiveMode.Create, leaveOpen: true);
Aspire.Dashboard.Tests (2)
Model\TelemetryImportServiceTests.cs (2)
128using (var archive = new ZipArchive(zipStream, ZipArchiveMode.Create, leaveOpen: true)) 170using (var archive = new ZipArchive(zipStream, ZipArchiveMode.Create, leaveOpen: true))
crossgen2 (1)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
222using (var archive = ZipFile.Open(zipFileName, ZipArchiveMode.Create))
ilc (1)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
222using (var archive = ZipFile.Open(zipFileName, ZipArchiveMode.Create))
Microsoft.Arcade.Common (1)
ZipArchiveManager.cs (1)
33using ZipArchive zip = new(fs, archiveExists ? ZipArchiveMode.Update : ZipArchiveMode.Create, false);
Microsoft.Build (1)
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
80_zipArchive = new ZipArchive(_fileStream, ZipArchiveMode.Create);
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WritePackageUsageData.cs (1)
157ZipArchiveMode.Create))
Microsoft.ML.Core (1)
Data\Repository.cs (1)
310_archive = new ZipArchive(stream, ZipArchiveMode.Create, leaveOpen: true);
NuGet.Packaging (2)
PackageCreation\Authoring\PackageBuilder.cs (1)
344using (var package = new ZipArchive(stream, ZipArchiveMode.Create, leaveOpen: true))
PackageFileExtractor.cs (1)
110using (var zipArchive = new ZipArchive(outputStream, ZipArchiveMode.Create))
sdk-tasks (1)
ZipFileCreateFromDirectory.cs (1)
74using (ZipArchive zipFile = new(writer, ZipArchiveMode.Create))
System.IO.Compression (19)
System\IO\Compression\ZipArchive.Async.cs (2)
91case ZipArchiveMode.Create: 150case ZipArchiveMode.Create:
System\IO\Compression\ZipArchive.cs (6)
147case ZipArchiveMode.Create: 232if (_mode == ZipArchiveMode.Create) 349case ZipArchiveMode.Create: 397if (_mode == ZipArchiveMode.Create) 1036case ZipArchiveMode.Create: 1072return mode == ZipArchiveMode.Create && !stream.CanSeek ?
System\IO\Compression\ZipArchiveEntry.Async.cs (4)
39/// <item><description><see cref="ZipArchiveMode.Create"/>: <see cref="FileAccess.Write"/> and <see cref="FileAccess.ReadWrite"/> are allowed (both write-only).</description></item> 67/// <item><description><see cref="ZipArchiveMode.Create"/>: <see cref="FileAccess.Write"/> and <see cref="FileAccess.ReadWrite"/> are allowed; <see cref="FileAccess.Read"/> is not allowed. The <paramref name="password"/> is only used when decrypting existing encrypted entries and is not used when opening a newly created entry for writing.</description></item> 100/// <exception cref="IOException">The entry is already currently open for writing. -or- The entry has been deleted from the archive. -or- The archive that this entry belongs to was opened in <see cref="ZipArchiveMode.Create" />, and this entry has already been written to once.</exception> 124case ZipArchiveMode.Create:
System\IO\Compression\ZipArchiveEntry.cs (7)
204if (_archive.Mode == ZipArchiveMode.Create) 372if (_archive.Mode == ZipArchiveMode.Create && _everOpenedForWrite) 497/// <item><description><see cref="ZipArchiveMode.Create"/>: <see cref="FileAccess.Write"/> and <see cref="FileAccess.ReadWrite"/> are allowed (both write-only).</description></item> 529ZipArchiveMode.Create => FileAccess.Write, 548case ZipArchiveMode.Create: 563case ZipArchiveMode.Create: 1578bool isCreateMode = _archive.Mode == ZipArchiveMode.Create;
System.IO.Compression.ZipFile (10)
System\IO\Compression\ZipFile.Create.Async.cs (4)
453ZipArchive archive = await OpenAsync(destinationArchiveFileName, ZipArchiveMode.Create, options.EntryNameEncoding, cancellationToken).ConfigureAwait(false); 480ZipArchive archive = await ZipArchive.CreateAsync(destination, ZipArchiveMode.Create, leaveOpen: true, options.EntryNameEncoding, cancellationToken).ConfigureAwait(false); 499ZipArchive archive = await OpenAsync(destinationArchiveFileName, ZipArchiveMode.Create, entryNameEncoding, cancellationToken).ConfigureAwait(false); 513ZipArchive archive = await ZipArchive.CreateAsync(destination, ZipArchiveMode.Create, leaveOpen: true, entryNameEncoding, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFile.Create.cs (5)
421using ZipArchive archive = Open(destinationArchiveFileName, ZipArchiveMode.Create, options.EntryNameEncoding); 443using ZipArchive archive = new ZipArchive(destination, ZipArchiveMode.Create, leaveOpen: true, options.EntryNameEncoding); 457using ZipArchive archive = Open(destinationArchiveFileName, ZipArchiveMode.Create, entryNameEncoding); 466using ZipArchive archive = new ZipArchive(destination, ZipArchiveMode.Create, leaveOpen: true, entryNameEncoding); 517ZipArchiveMode.Create => (FileMode.CreateNew, FileAccess.Write, FileShare.None),
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (1)
176if (source.Archive is ZipArchive archive && archive.Mode != ZipArchiveMode.Create)
System.IO.Packaging (3)
System\IO\Packaging\ZipPackage.cs (2)
324zipArchiveMode = ZipArchiveMode.Create; 394zipArchiveMode = ZipArchiveMode.Create;
System\IO\Packaging\ZipPackagePart.cs (1)
33if (streamFileMode == FileMode.Create && _zipArchiveEntry.Archive.Mode != ZipArchiveMode.Create)