185 references to Read
mscorlib (35)
system\activationcontext.cs (1)
445using (FileStream fs = new FileStream(manifestPath, FileMode.Open, FileAccess.Read))
system\console.cs (1)
1875FileAccess.Read, bufferSize);
system\io\__consolestream.cs (2)
54_canRead = ( (access & FileAccess.Read) == FileAccess.Read );
system\io\file.cs (2)
769return new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read); 917using(FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read,
system\io\fileinfo.cs (1)
429return new FileStream(FullPath, FileMode.Open, FileAccess.Read,
system\io\filestream.cs (6)
646else if (!useRights && (access < FileAccess.Read || access > FileAccess.ReadWrite)) 700fAccess = access == FileAccess.Read? GENERIC_READ: 734if ((!useRights && (access & FileAccess.Read) != 0) || (useRights && (fileSystemRights & FileSystemRights.ReadAndExecute) != 0)) 928_canRead = (access & FileAccess.Read) != 0; 1019if (access < FileAccess.Read || access > FileAccess.ReadWrite) 1027_canRead = 0 != (access & FileAccess.Read);
system\io\isolatedstorage\isolatedstoragefilestream.cs (2)
72: this(path, mode, access, access == FileAccess.Read? 81: this(path, mode, access, access == FileAccess.Read?
system\io\pinnedbuffermemorystream.cs (1)
49Initialize(ptr, len, len, FileAccess.Read, true);
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\unmanagedmemoryaccessor.cs (3)
55Initialize(buffer, offset, capacity, FileAccess.Read); 78if (access < FileAccess.Read || access > FileAccess.ReadWrite) { 108_canRead = (_access & FileAccess.Read) != 0;
system\io\unmanagedmemorystream.cs (5)
123Initialize(buffer, offset, length, FileAccess.Read, false); 158if (access < FileAccess.Read || access > FileAccess.ReadWrite) { 201Initialize(pointer, length, length, FileAccess.Read, false); 240if (access < FileAccess.Read || access > FileAccess.ReadWrite) 260get { return _isOpen && (_access & FileAccess.Read) != 0; }
system\reflection\assembly.cs (3)
2268FileAccess.Read, FileShare.Read, FileStream.DefaultBufferSize, false); 2287FileAccess.Read, FileShare.Read, FileStream.DefaultBufferSize, false); 2538return new UnmanagedMemoryStream(pbInMemoryResource, (long)length, (long)length, FileAccess.Read, true);
system\resources\resourcereader.cs (2)
167_store = new BinaryReader(new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read, DefaultFileStreamBufferSize, FileOptions.RandomAccess, Path.GetFileName(fileName), false), Encoding.UTF8); 782return new UnmanagedMemoryStream(_ums.PositionPointer, len, len, FileAccess.Read, true);
system\resources\runtimeresourceset.cs (1)
196Stream stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
system\security\permissions\permissionattributes.cs (1)
1198return BruteForceParseStream( new FileStream( m_file, FileMode.Open, FileAccess.Read) );
system\security\policy\applicationsecuritymanager.cs (1)
129using (FileStream contents = new FileStream(s_machineConfigFile, FileMode.Open, FileAccess.Read))
system\security\policy\policylevel.cs (1)
808using (FileStream stream = new FileStream(fileName, FileMode.Open, FileAccess.Read)) {
system\security\securitymanager.cs (1)
187using (FileStream stream = new FileStream(path, FileMode.Open, FileAccess.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 (8)
Core\CSharp\MS\Internal\AppModel\SiteOfOriginContainer.cs (1)
145internal SiteOfOriginContainer() : base(FileAccess.Read)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
1088Initialize((byte*)_viewHandle.Memory, size, size, FileAccess.Read);
Core\CSharp\MS\Internal\FontCache\FontSource.cs (1)
451 FileAccess.Read
Core\CSharp\System\IO\Packaging\PackWebResponse.cs (2)
278Stream s = p.GetStream(FileMode.Open, FileAccess.Read); 684Stream s = p.GetStream(FileMode.Open, FileAccess.Read);
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 (13)
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\ContentFilePart.cs (1)
171s = System.IO.File.Open(filename, FileMode.Open, FileAccess.Read, ResourceContainer.FileShare);
src\Framework\MS\Internal\AppModel\ResourceContainer.cs (1)
103internal ResourceContainer() : base(FileAccess.Read)
src\Framework\MS\Internal\IO\Packaging\ByteStream.cs (3)
60Debug.Assert(_access == FileAccess.Read); 80(FileAccess.Read == (_access & FileAccess.Read) ||
src\Framework\MS\Internal\IO\Packaging\XpsFilter.cs (1)
395fileAccess = FileAccess.Read;
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (2)
520using (FileStream stream = new FileStream(lexiconFilePath, FileMode.Open, FileAccess.Read)) 705using (FileStream sourceStream = new FileStream(sourcePath, FileMode.Open, FileAccess.Read))
src\Framework\System\Windows\Documents\WpfPayload.cs (1)
801Package package = Package.Open(stream, FileMode.Open, FileAccess.Read);
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
1403FileStream fileStream = new FileStream(manifestName, FileMode.Open, FileAccess.Read);
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
53var stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
System (20)
compmod\microsoft\csharp\csharpcodeprovider.cs (2)
3464using (FileStream fs = new FileStream(options.OutputAssembly, FileMode.Open, FileAccess.Read, FileShare.Read)) 3511using(FileStream stream = File.Open(file, FileMode.Open, FileAccess.Read, share))
compmod\microsoft\visualbasic\VBCodeProvider.cs (2)
2909FileStream fs = new FileStream(outputAssemblyFile, FileMode.Open, FileAccess.Read, FileShare.Read); 2947using(FileStream stream = File.Open(file, FileMode.Open, FileAccess.Read, share))
compmod\system\codedom\compiler\CodeCompiler.cs (2)
376FileAccess.Read, FileShare.ReadWrite); 402FileStream fs = new FileStream(options.OutputAssembly, FileMode.Open, FileAccess.Read, FileShare.Read);
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\Configuration\UriSectionReader.cs (1)
65using (FileStream configFile = new FileStream(configFilePath, FileMode.Open, FileAccess.Read))
net\System\Net\filewebrequest.cs (1)
55m_fileAccess = FileAccess.Read;
net\System\Net\filewebresponse.cs (1)
50FileAccess.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\NetworkStream.cs (1)
418case FileAccess.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);
net\System\Net\webclient.cs (1)
615fs = new FileStream(fileName, FileMode.Open, FileAccess.Read);
services\monitoring\system\diagnosticts\Process.cs (2)
2159standardOutput = new StreamReader(new FileStream(standardOutputReadPipeHandle, FileAccess.Read, 4096, false), enc, true, 4096); 2163standardError = new StreamReader(new FileStream(standardErrorReadPipeHandle, FileAccess.Read, 4096, false), enc, true, 4096);
System.Activities (1)
System\Activities\Debugger\SourceLocationProvider.cs (1)
147using (FileStream fs = new FileStream(sourcePath, FileMode.Open, FileAccess.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 (3)
System\Configuration\AppSettingsSection.cs (1)
127using (Stream sourceFileStream = new FileStream(sourceFileFullPath, FileMode.Open, FileAccess.Read, FileShare.Read)) {
System\Configuration\Internal\InternalConfigHost.cs (1)
144return new FileStream(streamName, FileMode.Open, FileAccess.Read, FileShare.Read);
System\Configuration\Internal\WriteFileContext.cs (1)
287FileAccess.Read,
System.Core (2)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (2)
751return FileAccess.Read; 763return FileAccess.Read;
System.Data (5)
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 (3)
519case FileAccess.Read: 591if (access != FileAccess.Read && access != FileAccess.Write && access != FileAccess.ReadWrite) 626case System.IO.FileAccess.Read:
System.Drawing (1)
commonui\System\Drawing\Icon.cs (1)
101using (FileStream f = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read)) {
System.IO.Log (6)
System\IO\Log\FileRecordSequence.cs (2)
543if ((this.access & FileAccess.Read) == 0) 559if ((this.access & FileAccess.Read) == 0)
System\IO\Log\FileRegion.cs (1)
79FileAccess.Read,
System\IO\Log\LogStore.cs (3)
117(access == FileAccess.Read ? GENERIC_READ : 142bool writeOnly = (access & FileAccess.Read) == 0; 542if (access < FileAccess.Read || access > FileAccess.ReadWrite)
System.Web (20)
Compilation\AssemblyBuilder.cs (1)
667using (Stream stream = new FileStream(physicalPath, FileMode.Open, FileAccess.Read, FileShare.Read)) {
Configuration\BrowserCapabilitiesCodeGenerator.cs (1)
863using (FileStream pktStream = new FileStream(filename, FileMode.Open, FileAccess.Read)) {
Hosting\ApplicationManager.cs (1)
1457FileStream file = new FileStream(configFile, FileMode.Open, FileAccess.Read);
Hosting\IIS7WorkerRequest.cs (2)
1048FileAccess.Read, 1079FileAccess.Read,
Hosting\ISAPIWorkerRequest.cs (3)
1385f = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read); 1421f = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read); 1440f = new FileStream(new Microsoft.Win32.SafeHandles.SafeFileHandle(handle,false), FileAccess.Read);
Hosting\MapPathBasedVirtualPathProvider.cs (1)
189return new FileStream(_physicalPath, FileMode.Open, FileAccess.Read, FileShare.Read);
HttpResponse.cs (5)
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); 2924f = new FileStream(new Microsoft.Win32.SafeHandles.SafeFileHandle(fileHandle,false), FileAccess.Read);
HttpRuntime.cs (2)
1254using (FileStream fs = new FileStream(appOfflineFile, FileMode.Open, FileAccess.Read, FileShare.Read)) { 3243FileStream file = new FileStream(configFile, FileMode.Open, FileAccess.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.Web.Extensions (1)
ClientServices\Providers\ClientData.cs (1)
228using (FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read)) {
System.Web.Services (1)
System\Web\Services\Discovery\DiscoveryRequestHandler.cs (1)
54stream = new FileStream(physicalPath, FileMode.Open, FileAccess.Read);
System.Windows.Forms (6)
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\PropertyGrid.cs (1)
5369FileStream fs = new FileStream(fullFileName, FileMode.Open, FileAccess.Read);
winforms\Managed\System\WinForms\RichTextBox.cs (1)
2417Stream file = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
System.WorkflowServices (2)
System\Workflow\Runtime\StreamedWorkflowDefinitionContext.cs (2)
58workflowDefStream = new FileStream(workflowDefinitionPath, FileMode.Open, FileAccess.Read); 62ruleDefStream = new FileStream(ruleDefinitionPath, FileMode.Open, FileAccess.Read);
System.Xml (2)
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 (56)
Base\MS\Internal\IO\Packaging\CompoundFile\CFStream.cs (2)
45return (!StreamDisposed && (FileAccess.Read == (access & FileAccess.Read) ||
Base\MS\Internal\IO\Packaging\CompoundFile\NativeCompoundFileAPIs.cs (4)
73( (FileAccess.Read | FileAccess.Write) == (access & (FileAccess.Read | FileAccess.Write))) ) 81else if( FileAccess.Read != (access & FileAccess.Read))
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (2)
824using (Stream stream = si.GetStream(FileMode.Open, FileAccess.Read)) 877using (Stream stream = si.GetStream(FileMode.Open, FileAccess.Read))
Base\MS\Internal\IO\Packaging\CompoundFile\UserUseLicenseDictionaryLoader.cs (1)
132using (Stream stream = si.GetStream(FileMode.Open, FileAccess.Read))
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (2)
286Debug.Assert(_package.FileOpenAccess == FileAccess.Read || _package.FileOpenAccess == FileAccess.ReadWrite, 289using (Stream s = part.GetStream(FileMode.Open, FileAccess.Read))
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (2)
564Stream stream = part.GetStream(FileMode.Open, FileAccess.Read); 794if (_package.FileOpenAccess == FileAccess.Read || _package.FileOpenAccess == FileAccess.ReadWrite)
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (1)
189s = part.GetStream(FileMode.Open, FileAccess.Read);
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (1)
786using (Stream s = part.GetStream(FileMode.Open, FileAccess.Read))
Base\MS\Internal\IO\Zip\ZipArchive.cs (10)
178if (_openAccess == FileAccess.Read) 291if (_openAccess == FileAccess.Read) 574if ((access== FileAccess.Read || access == FileAccess.ReadWrite) && !stream.CanRead) 619else if ((access != FileAccess.Read) && (access != FileAccess.ReadWrite) && (access != FileAccess.Write)) 680{(int)FileMode.Open, (int)FileAccess.Read, (int)FileShare.None, 1}, 681{(int)FileMode.Open, (int)FileAccess.Read, (int)FileShare.None, 0}, 682{(int)FileMode.Open, (int)FileAccess.Read, (int)FileShare.Read, 1}, 683{(int)FileMode.Open, (int)FileAccess.Read, (int)FileShare.Read, 0}, 684{(int)FileMode.Open, (int)FileAccess.Read, (int)FileShare.Write, 1}, 685{(int)FileMode.Open, (int)FileAccess.Read, (int)FileShare.ReadWrite, 1},
Base\MS\Internal\IO\Zip\ZipIOLocalFileBlock.cs (1)
826case FileAccess.Read:
Base\MS\Internal\IO\Zip\ZipIOModeEnforcingStream.cs (1)
55((_access == FileAccess.Read) || (_access == FileAccess.ReadWrite)));
Base\System\IO\Packaging\CompoundFile\DataSpaceManager.cs (3)
546if (FileAccess.Read != _associatedStorage.OpenAccess && DirtyFlag) 832if (_associatedStorage.OpenAccess == FileAccess.Read) 1379if (_associatedStorage.OpenAccess == FileAccess.Read)
Base\System\IO\Packaging\CompoundFile\StorageInfo.cs (1)
794if( FileAccess.Read == Root.OpenAccess )
Base\System\IO\Packaging\CompoundFile\StorageRoot.cs (1)
94return FileAccess.Read;
Base\System\IO\Packaging\CompoundFile\StreamInfo.cs (4)
342if( FileAccess.Read != parentStorage.Root.OpenAccess && 343FileAccess.Read != openFileAccess ) 592if( FileAccess.Read == parentStorage.Root.OpenAccess ) 597if( access == FileAccess.Read )
Base\System\IO\Packaging\EncryptedPackage.cs (2)
515root = StorageRoot.Open(fileName, FileMode.Open, FileAccess.Read, FileShare.Read); 743fileAccessForPackage |= FileAccess.Read;
Base\System\IO\Packaging\Package.cs (10)
919if (_openFileAccess == FileAccess.Read) 943if (access < FileAccess.Read || access > FileAccess.ReadWrite) 1013if (package.FileOpenAccess == FileAccess.ReadWrite || package.FileOpenAccess == FileAccess.Read) 1079if (package.FileOpenAccess == FileAccess.ReadWrite || package.FileOpenAccess == FileAccess.Read) 1237if (!s.CanRead && (access == FileAccess.ReadWrite || access == FileAccess.Read)) 1242if ((s.CanRead && s.CanWrite) && (access == FileAccess.Read || access == FileAccess.Write)) 1277if (_relationships != null && _openFileAccess != FileAccess.Read) 1460private static readonly FileAccess _defaultStreamAccess = FileAccess.Read; 1504Debug.Assert(access==FileAccess.Read || access == FileAccess.Write, 1509if (access == FileAccess.Read)
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (1)
1373return (_container.FileOpenAccess == FileAccess.Read);
Base\System\IO\Packaging\PackagePart.cs (4)
732if (_relationships != null && _container.FileOpenAccess != FileAccess.Read) 809if(access == FileAccess.Read && 814if((_container.FileOpenAccess == FileAccess.Read && access != FileAccess.Read) ||
Base\System\IO\Packaging\ZipPackage.cs (3)
888if(_zipArchive.OpenAccess == FileAccess.Read || _zipArchive.OpenAccess == FileAccess.ReadWrite) 1303return _contentTypeFileInfo.GetStream(FileMode.Open, FileAccess.Read); 1315pieces, FileMode.Open, FileAccess.Read);