92 references to Read
mscorlib (17)
system\io\file.cs (4)
178using(SafeFileHandle handle = Win32Native.UnsafeCreateFile(fullSourceFileName, FileStream.GENERIC_READ, FileShare.Read, null, FileMode.Open, 0, IntPtr.Zero)) { 769return new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read); 917using(FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 978using (FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.Read,
system\io\fileinfo.cs (1)
430FileShare.Read, 4096, false);
system\io\filestream.cs (2)
512: this(path, mode, (mode == FileMode.Append ? FileAccess.Write : FileAccess.ReadWrite), FileShare.Read, DefaultBufferSize, FileOptions.None, Path.GetFileName(path), false) { 519: this(path, mode, access, FileShare.Read, DefaultBufferSize, FileOptions.None, Path.GetFileName(path), false) {
system\io\isolatedstorage\isolatedstoragefilestream.cs (2)
73FileShare.Read: FileShare.None, DefaultBufferSize, null) { 82FileShare.Read: FileShare.None, DefaultBufferSize, isf) {
system\io\longpath.cs (1)
226using(SafeFileHandle handle = Win32Native.UnsafeCreateFile(fullSourceFileName, FileStream.GENERIC_READ, FileShare.Read, null, FileMode.Open, 0, IntPtr.Zero)) {
system\io\streamreader.cs (1)
240Stream stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, DefaultFileStreamBufferSize, FileOptions.SequentialScan, Path.GetFileName(path), false, false, checkHost);
system\io\streamwriter.cs (1)
226FileStream f = new FileStream(path, mode, FileAccess.Write, FileShare.Read,
system\reflection\assembly.cs (2)
2268FileAccess.Read, FileShare.Read, FileStream.DefaultBufferSize, false); 2287FileAccess.Read, FileShare.Read, FileStream.DefaultBufferSize, false);
system\resources\resourcereader.cs (1)
167_store = new BinaryReader(new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read, DefaultFileStreamBufferSize, FileOptions.RandomAccess, Path.GetFileName(fileName), false), Encoding.UTF8);
system\resources\resourcewriter.cs (1)
363dataSection = new FileStream(tempFile, FileMode.Open, FileAccess.ReadWrite, FileShare.Read,
system\resources\runtimeresourceset.cs (1)
196Stream stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
PresentationBuildTasks (2)
BuildTasks\Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
64_sourceStream = new FileStream(_sourcePath, FileMode.Open, FileAccess.Read, FileShare.Read);
Shared\System\Windows\Markup\ReflectionHelper.cs (1)
650using (FileStream fileStream = File.Open(filepath, FileMode.Open, FileAccess.Read, FileShare.Read))
PresentationCore (3)
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (3)
1208bitmapStream = new System.IO.FileStream(uri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read); 1239bitmapStream = new System.IO.FileStream(uri.OriginalString, FileMode.Open, FileAccess.Read, FileShare.Read); 1472bitmapStream = new System.IO.FileStream(uri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read);
PresentationFramework (4)
src\Framework\Microsoft\Win32\OpenFileDialog.cs (2)
114fileStream = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read); 171fileStream = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read);
src\Framework\MS\Internal\AppModel\ResourceContainer.cs (1)
416private static FileShare _fileShare = FileShare.Read;
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
53var stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
System (19)
compmod\microsoft\csharp\csharpcodeprovider.cs (4)
674Stream temp = new FileStream(responseFileName, FileMode.Create, FileAccess.Write, FileShare.Read); 3464using (FileStream fs = new FileStream(options.OutputAssembly, FileMode.Open, FileAccess.Read, FileShare.Read)) 3737Stream temp = new FileStream(filenames[i], FileMode.Create, FileAccess.Write, FileShare.Read); 3811FileStream fileStream = new FileStream(name, FileMode.Create, FileAccess.ReadWrite, FileShare.Read);
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
2909FileStream fs = new FileStream(outputAssemblyFile, FileMode.Open, FileAccess.Read, FileShare.Read);
compmod\system\codedom\compiler\CodeCompiler.cs (4)
265Stream temp = new FileStream(filenames[i], FileMode.Create, FileAccess.Write, FileShare.Read); 402FileStream fs = new FileStream(options.OutputAssembly, FileMode.Open, FileAccess.Read, FileShare.Read); 458Stream temp = new FileStream(responseFileName, FileMode.Create, FileAccess.Write, FileShare.Read); 503FileStream fileStream = new FileStream(name, FileMode.Create, FileAccess.ReadWrite, FileShare.Read);
compmod\system\codedom\compiler\Executor.cs (1)
57return new FileStream(file, FileMode.CreateNew, FileAccess.Write, FileShare.Read | FileShare.Inheritable);
compmod\system\componentmodel\LicFileLicenseProvider.cs (1)
82Stream licStream = new FileStream(licenseFile, FileMode.Open, FileAccess.Read, FileShare.Read);
net\System\Net\Cache\IERequestCache.cs (1)
628: base(entry.Filename, FileMode.Open, FileAccess.Read, FileShare.Read | FileShare.Delete, 4096, async)
net\System\Net\filewebrequest.cs (1)
434request.m_stream = new FileWebStream(request, request.m_uri.LocalPath, FileMode.Create, FileAccess.Write, FileShare.Read);
net\System\Net\filewebresponse.cs (1)
51FileShare.Read,
net\System\Net\mail\Attachment.cs (2)
89Stream stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read); 106Stream stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
net\System\Net\Sockets\Socket.cs (3)
1437fileStream = new FileStream(fileName,FileMode.Open,FileAccess.Read,FileShare.Read); 3617fileStream = new FileStream(fileName,FileMode.Open,FileAccess.Read,FileShare.Read); 9306new FileStream(spe.m_FilePath,FileMode.Open,FileAccess.Read,FileShare.Read);
System.AddIn (1)
System\Addin\MiniReflection\MetadataReader\PEFileReader.cs (1)
62FileStream TheFile = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read, 4096, FileOptions.RandomAccess);
System.Configuration (4)
System\Configuration\AppSettingsSection.cs (1)
127using (Stream sourceFileStream = new FileStream(sourceFileFullPath, FileMode.Open, FileAccess.Read, FileShare.Read)) {
System\Configuration\Internal\InternalConfigHost.cs (2)
144return new FileStream(streamName, FileMode.Open, FileAccess.Read, FileShare.Read); 247stream = new FileStream(writeFileContext.TempNewFilename, FileMode.Create, FileAccess.Write, FileShare.Read);
System\Configuration\Internal\WriteFileContext.cs (1)
278FileShare fileShare = FileShare.Read;
System.Core (2)
System\IO\LogStream.cs (2)
87UnsafeNativeMethods.SECURITY_ATTRIBUTES secAttrs = GetSecAttrs(FileShare.Read); 101_shareSav = FileShare.Read;
System.Data (4)
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
2114return new FileStream(filename,FileMode.Open,FileAccess.Read,FileShare.Read);
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (1)
288using(FileStream fstream = new FileStream(udlfilename, FileMode.Open, FileAccess.Read, FileShare.Read)) {
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (2)
634shareAccess = System.IO.FileShare.Delete | System.IO.FileShare.Read; 644shareAccess = System.IO.FileShare.Delete | System.IO.FileShare.Read;
System.Drawing (1)
commonui\System\Drawing\Icon.cs (1)
101using (FileStream f = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read)) {
System.Web (16)
Compilation\AssemblyBuilder.cs (3)
241Stream temp = new FileStream(generatedFilePath, FileMode.Create, FileAccess.Write, FileShare.Read); 667using (Stream stream = new FileStream(physicalPath, FileMode.Open, FileAccess.Read, FileShare.Read)) { 1298Stream temp = new FileStream(generatedCodeFile, FileMode.Create, FileAccess.Write, FileShare.Read);
Hosting\IIS7WorkerRequest.cs (1)
1049FileShare.Read);
Hosting\ISAPIWorkerRequest.cs (2)
1385f = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read); 1421f = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read);
Hosting\MapPathBasedVirtualPathProvider.cs (1)
189return new FileStream(_physicalPath, FileMode.Open, FileAccess.Read, FileShare.Read);
HttpResponse.cs (4)
2769f = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read); 2816using (FileStream f = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read)) { 2847f = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read); 2895f = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read);
HttpRuntime.cs (1)
1254using (FileStream fs = new FileStream(appOfflineFile, FileMode.Open, FileAccess.Read, FileShare.Read)) {
HttpWriter.cs (1)
470f = new FileStream(_filename, FileMode.Open, FileAccess.Read, FileShare.Read);
UI\Control.cs (2)
2200return new FileStream(physicalPath, FileMode.Open, FileAccess.Read, FileShare.Read); 2225stream = new FileStream(physicalPath, FileMode.Open, FileAccess.Read, FileShare.Read);
Util\SmtpMail.cs (1)
613File.Open(_filename, FileMode.Open, FileAccess.Read, FileShare.Read).Close();
System.Windows.Forms (5)
winforms\Managed\System\Resources\ResXFileRef.cs (1)
307using (FileStream s = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read)) {
winforms\Managed\System\Resources\ResXResourceReader.cs (1)
286stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
winforms\Managed\System\WinForms\Cursor.cs (1)
123FileStream f = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
winforms\Managed\System\WinForms\OpenFileDialog.cs (1)
161s = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read);
winforms\Managed\System\WinForms\RichTextBox.cs (1)
2417Stream file = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
708Stream temp = new FileStream(filenames[i], FileMode.Create, FileAccess.Write, FileShare.Read);
System.Xml (4)
System\Xml\Core\XmlTextWriter.cs (1)
279FileAccess.Write, FileShare.Read), encoding) {
System\Xml\Core\XmlWriterSettings.cs (1)
454fs = new FileStream(outputFileName, FileMode.Create, FileAccess.Write, FileShare.Read, 0x1000, useAsync);
System\Xml\XmlDownloadManager.cs (1)
30return new FileStream( uri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read, 1 );
System\Xml\XmlDownloadManagerAsync.cs (1)
23return Task.Run<Stream>(() => { return new FileStream(uri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read, 1, true); });
WindowsBase (9)
Base\MS\Internal\IO\Zip\ZipArchive.cs (6)
602else if (share != FileShare.Read && share != FileShare.None) 624(share != FileShare.Read) && (share != FileShare.ReadWrite) && (share != FileShare.Write)) 675{(int)FileMode.Create, (int)FileAccess.Write, (int)FileShare.Read, 1}, 678{(int)FileMode.CreateNew, (int)FileAccess.Write, (int)FileShare.Read, 1}, 682{(int)FileMode.Open, (int)FileAccess.Read, (int)FileShare.Read, 1}, 683{(int)FileMode.Open, (int)FileAccess.Read, (int)FileShare.Read, 0},
Base\System\IO\Packaging\CompoundFile\StorageRoot.cs (1)
329else if( share == FileShare.Read )
Base\System\IO\Packaging\EncryptedPackage.cs (1)
515root = StorageRoot.Open(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
Base\System\IO\Packaging\Package.cs (1)
1212&& packageShare != FileShare.Read && packageShare != FileShare.None)