47 references to Create
aspire (2)
src\Shared\Export\ExportArchive.cs (2)
57
using var archive = new ZipArchive(fileStream, ZipArchiveMode.
Create
, leaveOpen: false);
67
using var archive = new ZipArchive(stream, ZipArchiveMode.
Create
, leaveOpen: true);
Aspire.Dashboard (2)
src\Shared\Export\ExportArchive.cs (2)
57
using var archive = new ZipArchive(fileStream, ZipArchiveMode.
Create
, leaveOpen: false);
67
using var archive = new ZipArchive(stream, ZipArchiveMode.
Create
, leaveOpen: true);
Aspire.Dashboard.Tests (2)
Model\TelemetryImportServiceTests.cs (2)
128
using (var archive = new ZipArchive(zipStream, ZipArchiveMode.
Create
, leaveOpen: true))
170
using (var archive = new ZipArchive(zipStream, ZipArchiveMode.
Create
, leaveOpen: true))
crossgen2 (1)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
222
using (var archive = ZipFile.Open(zipFileName, ZipArchiveMode.
Create
))
ilc (1)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
222
using (var archive = ZipFile.Open(zipFileName, ZipArchiveMode.
Create
))
Microsoft.Arcade.Common (1)
ZipArchiveManager.cs (1)
33
using 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)
157
ZipArchiveMode.
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)
344
using (var package = new ZipArchive(stream, ZipArchiveMode.
Create
, leaveOpen: true))
PackageFileExtractor.cs (1)
110
using (var zipArchive = new ZipArchive(outputStream, ZipArchiveMode.
Create
))
sdk-tasks (1)
ZipFileCreateFromDirectory.cs (1)
74
using (ZipArchive zipFile = new(writer, ZipArchiveMode.
Create
))
System.IO.Compression (19)
System\IO\Compression\ZipArchive.Async.cs (2)
91
case ZipArchiveMode.
Create
:
150
case ZipArchiveMode.
Create
:
System\IO\Compression\ZipArchive.cs (6)
147
case ZipArchiveMode.
Create
:
232
if (_mode == ZipArchiveMode.
Create
)
349
case ZipArchiveMode.
Create
:
397
if (_mode == ZipArchiveMode.
Create
)
1036
case ZipArchiveMode.
Create
:
1072
return 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>
124
case ZipArchiveMode.
Create
:
System\IO\Compression\ZipArchiveEntry.cs (7)
204
if (_archive.Mode == ZipArchiveMode.
Create
)
372
if (_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>
529
ZipArchiveMode.
Create
=> FileAccess.Write,
548
case ZipArchiveMode.
Create
:
563
case ZipArchiveMode.
Create
:
1578
bool isCreateMode = _archive.Mode == ZipArchiveMode.
Create
;
System.IO.Compression.ZipFile (10)
System\IO\Compression\ZipFile.Create.Async.cs (4)
453
ZipArchive archive = await OpenAsync(destinationArchiveFileName, ZipArchiveMode.
Create
, options.EntryNameEncoding, cancellationToken).ConfigureAwait(false);
480
ZipArchive archive = await ZipArchive.CreateAsync(destination, ZipArchiveMode.
Create
, leaveOpen: true, options.EntryNameEncoding, cancellationToken).ConfigureAwait(false);
499
ZipArchive archive = await OpenAsync(destinationArchiveFileName, ZipArchiveMode.
Create
, entryNameEncoding, cancellationToken).ConfigureAwait(false);
513
ZipArchive archive = await ZipArchive.CreateAsync(destination, ZipArchiveMode.
Create
, leaveOpen: true, entryNameEncoding, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFile.Create.cs (5)
421
using ZipArchive archive = Open(destinationArchiveFileName, ZipArchiveMode.
Create
, options.EntryNameEncoding);
443
using ZipArchive archive = new ZipArchive(destination, ZipArchiveMode.
Create
, leaveOpen: true, options.EntryNameEncoding);
457
using ZipArchive archive = Open(destinationArchiveFileName, ZipArchiveMode.
Create
, entryNameEncoding);
466
using ZipArchive archive = new ZipArchive(destination, ZipArchiveMode.
Create
, leaveOpen: true, entryNameEncoding);
517
ZipArchiveMode.
Create
=> (FileMode.CreateNew, FileAccess.Write, FileShare.None),
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (1)
176
if (source.Archive is ZipArchive archive && archive.Mode != ZipArchiveMode.
Create
)
System.IO.Packaging (3)
System\IO\Packaging\ZipPackage.cs (2)
324
zipArchiveMode = ZipArchiveMode.
Create
;
394
zipArchiveMode = ZipArchiveMode.
Create
;
System\IO\Packaging\ZipPackagePart.cs (1)
33
if (streamFileMode == FileMode.Create && _zipArchiveEntry.Archive.Mode != ZipArchiveMode.
Create
)