13 writes to Mode
aspire (1)
Aspire.Hosting.Dotnet (1)
dotnet-aot (1)
dotnet-user-jwts (1)
Microsoft.Build.Tasks.Core (1)
Microsoft.NET.HostModel (1)
Microsoft.NET.ProjectData (1)
NuGet.Packaging (1)
System.Formats.Tar (4)
System.IO.Compression.ZipFile (1)
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);