243 references to Read
aspire (1)
Aspire.Cli.Tests (2)
Aspire.Hosting (1)
Aspire.Hosting.Browsers (1)
Aspire.Hosting.Browsers.Tests (1)
dotnet (3)
dotnet-aot (1)
dotnet-svcutil-lib (10)
GenerateDocumentationAndConfigFiles (2)
ILCompiler.Compiler (2)
ILCompiler.ReadyToRun (2)
ILCompiler.RyuJit (1)
ILCompiler.TypeSystem (1)
illink (1)
Microsoft.Build (4)
Microsoft.Build.Framework (3)
FileUtilities.cs (2)
1606Stream fileStream = new FileStream(path, mode, FileAccess.Write, FileShare.Read, DefaultFileStreamBufferSize, FileOptions.SequentialScan);
1620Stream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, DefaultFileStreamBufferSize, FileOptions.SequentialScan);
Microsoft.Build.Tasks.Core (15)
Microsoft.Build.Tasks.Git (1)
Microsoft.Build.Utilities.Core (1)
Microsoft.CodeAnalysis (11)
MetadataReference\MetadataReference.cs (3)
246StandardFileSystem.Instance.OpenFileWithNormalizedException(path, FileMode.Open, FileAccess.Read, FileShare.Read),
258StandardFileSystem.Instance.OpenFileWithNormalizedException(path, FileMode.Open, FileAccess.Read, FileShare.Read),
369var peStream = StandardFileSystem.Instance.OpenFileWithNormalizedException(filePath, FileMode.Open, FileAccess.Read, FileShare.Read);
Microsoft.CodeAnalysis.Analyzers (2)
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
Microsoft.CodeAnalysis.CodeStyle (2)
Microsoft.CodeAnalysis.Features (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.Deployment.DotNet.Releases (4)
Product.cs (2)
185using FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 4096, useAsync: true);
226using FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 4096, useAsync: true);
Microsoft.DotNet.ApiCompatibility (1)
Microsoft.DotNet.Arcade.Sdk (3)
Microsoft.DotNet.Build.Tasks.Packaging (2)
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Microsoft.DotNet.GenFacades (2)
Microsoft.DotNet.StrongName (2)
Microsoft.DotNet.XliffTasks (1)
Microsoft.Extensions.AI.Abstractions (4)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Microsoft.Extensions.DataIngestion.Abstractions (1)
Microsoft.Extensions.ML (1)
Microsoft.ML.AutoML (2)
Microsoft.ML.Core (5)
Microsoft.ML.Data (1)
Microsoft.ML.FastTree (1)
Microsoft.ML.ImageAnalytics (1)
Microsoft.ML.OnnxTransformer (2)
Microsoft.ML.ResultProcessor (1)
Microsoft.ML.TestFramework (1)
Microsoft.ML.Tests (3)
Microsoft.NET.Build.Extensions.Tasks (3)
Microsoft.NET.Build.Tasks (6)
Microsoft.NET.HostModel (1)
Microsoft.TemplateEngine.Utils (1)
Microsoft.TestPlatform.CoreUtilities (1)
Microsoft.TestPlatform.TestHostRuntimeProvider (1)
Microsoft.VisualBasic.Core (2)
Mono.Cecil (3)
MSBuild (1)
NuGet.ProjectModel (1)
NuGet.Protocol (11)
PresentationBuildTasks (1)
PresentationCore (3)
PresentationFramework (5)
PresentationUI (4)
ReachFramework (1)
Roslyn.Diagnostics.Analyzers (2)
rzc (2)
System.CodeDom (6)
System.ComponentModel.TypeConverter (1)
System.Configuration.ConfigurationManager (4)
System.Data.OleDb (2)
System.Diagnostics.Process (2)
System.Diagnostics.StackTrace (1)
System.Drawing.Common (1)
System.Formats.Tar (1)
System.IO.Compression.ZipFile (2)
System.IO.IsolatedStorage (2)
System\IO\IsolatedStorage\IsolatedStorageFileStream.cs (2)
32: this(path, mode, access, access == FileAccess.Read ? FileShare.Read : FileShare.None, DefaultBufferSize, null)
37: this(path, mode, access, access == FileAccess.Read ? FileShare.Read : FileShare.None, DefaultBufferSize, isf)
System.IO.MemoryMappedFiles (1)
System.Net.Mail (2)
System.Net.NetworkInformation (1)
System.Net.Requests (2)
System.Net.Sockets (1)
System.Private.CoreLib (23)
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (1)
227SafeFileHandle handle = Open(fullPath, FileMode.Open, FileAccess.Read, FileShare.Read, options, preallocationSize: 0, DefaultCreateMode, out fileLength, out filePermissions, false, out _, null);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (13)
141/// <param name="share">A bitwise combination of the enumeration values that determines how the file will be shared by processes. The default value is <see cref="FileShare.Read" />.</param>
166FileShare share = FileShare.Read, FileOptions options = FileOptions.None, long preallocationSize = 0)
644=> new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
724using (SafeFileHandle sfh = OpenHandle(path, FileMode.Open, FileAccess.Read, FileShare.Read, options))
790using SafeFileHandle sfh = OpenHandle(path, FileMode.Create, FileAccess.Write, FileShare.Read);
840using SafeFileHandle fileHandle = OpenHandle(path, FileMode.Append, FileAccess.Write, FileShare.Read);
885using SafeFileHandle fileHandle = OpenHandle(path, FileMode.Append, FileAccess.Write, FileShare.Read, FileOptions.Asynchronous);
1108new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, DefaultBufferSize, FileOptions.Asynchronous | FileOptions.SequentialScan),
1205SafeFileHandle sfh = OpenHandle(path, FileMode.Open, FileAccess.Read, FileShare.Read, options);
1316using SafeFileHandle sfh = OpenHandle(path, FileMode.Create, FileAccess.Write, FileShare.Read, FileOptions.Asynchronous);
1372new FileStream(path, append ? FileMode.Append : FileMode.Create, FileAccess.Write, FileShare.Read, DefaultBufferSize, FileOptions.Asynchronous),
1562using SafeFileHandle fileHandle = OpenHandle(path, mode, FileAccess.Write, FileShare.Read, FileOptions.None, GetPreallocationSize(mode, contents, encoding, preambleSize));
1618using SafeFileHandle fileHandle = OpenHandle(path, mode, FileAccess.Write, FileShare.Read, FileOptions.Asynchronous, GetPreallocationSize(mode, contents.Span, encoding, preambleSize));
System.Private.Xml (7)
System.Reflection.Metadata (1)
System.Reflection.MetadataLoadContext (2)
System.Resources.Extensions (1)
System.Speech (2)
System.Windows.Forms (4)
System.Windows.Forms.Design (3)
VBCSCompiler (1)