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