13 writes to Mode
aspire (1)
Certificates\CertificateCacheWriter.cs (1)
29Mode = FileMode.CreateNew,
Aspire.Hosting.Dotnet (1)
DotnetProjectBuildEnvironmentCallbackAnnotation.cs (1)
41Mode = FileMode.CreateNew,
dotnet-aot (1)
parent\dotnet\Commands\Test\MTP\TestApplication.cs (1)
466Mode = FileMode.CreateNew,
dotnet-user-jwts (1)
Helpers\JwtAuthenticationSchemeSettings.cs (1)
55var streamOptions = new FileStreamOptions { Access = FileAccess.Write, Mode = FileMode.Create };
Microsoft.Build.Tasks.Core (1)
Unzip.cs (1)
254Mode = FileMode.Create,
Microsoft.NET.HostModel (1)
HostModelUtils.cs (1)
40Mode = FileMode.Create,
Microsoft.NET.ProjectData (1)
CacheFileReader.cs (1)
312 Mode = FileMode.Open,
NuGet.Packaging (1)
NuGetExtractionFileIO.cs (1)
42Mode = FileMode.Create,
System.Formats.Tar (4)
System\Formats\Tar\TarEntry.cs (1)
746Mode = FileMode.CreateNew,
System\Formats\Tar\TarFile.cs (2)
560Mode = FileMode.CreateNew, 682Mode = FileMode.Open,
System\Formats\Tar\TarHelpers.Unix.cs (1)
28Mode = FileMode.CreateNew,
System.IO.Compression.ZipFile (1)
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (1)
155Mode = overwrite ? FileMode.Create : FileMode.CreateNew,
11 references to Mode
System.Private.CoreLib (11)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (11)
154/// <exception cref="T:System.IO.FileNotFoundException">The file cannot be found, such as when <see cref="FileStreamOptions.Mode" /> is <see langword="FileMode.Truncate" /> or <see langword="FileMode.Open" />, and the file specified by <paramref name="path" /> does not exist. The file must already exist in these modes.</exception> 172if ((options.Access & FileAccess.Read) != 0 && options.Mode == FileMode.Append) 178if (options.Mode == FileMode.Truncate || options.Mode == FileMode.CreateNew || options.Mode == FileMode.Create || options.Mode == FileMode.Append) 180throw new ArgumentException(SR.Format(SR.Argument_InvalidFileModeAndAccessCombo, options.Mode, options.Access), nameof(options)); 186FileStreamHelpers.ValidateArgumentsForPreallocation(options.Mode, options.Access); 192if (options.Mode == FileMode.Truncate || options.Mode == FileMode.Open) 201this, path, options.Mode, options.Access, options.Share, options.BufferSize, options.Options, options.PreallocationSize, options.UnixCreateMode);