146 references to Open
Microsoft.Activities.Build (1)
Microsoft\Activities\Build\Validation\ReportDeferredValidationErrorsTask.cs (1)
55using (FileStream stream = new FileStream(filePath, FileMode.Open))
mscorlib (21)
system\activationcontext.cs (1)
445using (FileStream fs = new FileStream(manifestPath, FileMode.Open, FileAccess.Read))
system\io\directory.cs (1)
1513FileMode.Open,
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, 1457FileStream fs = new FileStream(path, FileMode.Open, access, FileShare.ReadWrite, 1);
system\io\fileinfo.cs (1)
429return new FileStream(FullPath, FileMode.Open, FileAccess.Read,
system\io\isolatedstorage\isolatedstoragefile.cs (1)
2763using(FileStream fs = new FileStream(sb.ToString(), FileMode.Open)) {
system\io\isolatedstorage\isolatedstoragefilestream.cs (2)
153case FileMode.Open: // Open existing, else exception 215case FileMode.Open: // Open existing, else exception
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\reflection\assembly.cs (2)
2267FileMode.Open, 2286FileMode.Open,
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);
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 (7)
Core\CSharp\MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
80_tempFileStream = File.Open(tempFileName, FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite);
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\Input\Cursor.cs (1)
269using (FileStream fileStream = new FileStream(filePath, FileMode.Open, FileAccess.Write, FileShare.None))
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 (9)
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\IO\Packaging\XpsFilter.cs (1)
386fileMode = FileMode.Open;
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 (16)
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)
375FileStream outputStream = new FileStream(outputFile, FileMode.Open, 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\filewebresponse.cs (1)
49FileMode.Open,
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);
net\System\Net\webclient.cs (1)
615fs = new FileStream(fileName, FileMode.Open, FileAccess.Read);
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 (4)
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 (2)
168FileMode.Open, 286FileMode.Open,
System.Core (3)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
105return CreateFromFile(path, FileMode.Open, null, DefaultSize, MemoryMappedFileAccess.ReadWrite);
System\IO\Pipes\Pipe.cs (2)
1210FileMode.Open, // open existing 1335FileMode.Open, // open existing
System.Data (3)
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
2114return new FileStream(filename,FileMode.Open,FileAccess.Read,FileShare.Read);
fx\src\data\System\Data\DataSet.cs (1)
2562FileStream stream = new FileStream(fileName, FileMode.Open);
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (1)
288using(FileStream fstream = new FileStream(udlfilename, FileMode.Open, FileAccess.Read, FileShare.Read)) {
System.Drawing (2)
commonui\System\Drawing\Icon.cs (1)
101using (FileStream f = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read)) {
commonui\System\Drawing\ToolboxBitmapAttribute.cs (1)
323FileStream reader = System.IO.File.Open(imageFile, FileMode.Open);
System.IO.Log (2)
System\IO\Log\FileRegion.cs (1)
78FileMode.Open,
System\IO\Log\LogStore.cs (1)
536(mode == FileMode.Open) ||
System.Web (18)
Compilation\AssemblyBuilder.cs (1)
667using (Stream stream = new FileStream(physicalPath, FileMode.Open, FileAccess.Read, FileShare.Read)) {
Compilation\BuildResult.cs (1)
1262using (FileStream stream = File.Open(_ccuPreservationFileName, FileMode.Open)) {
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 (1)
1047FileMode.Open,
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 (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.DataVisualization (3)
Common\General\Chart.cs (2)
3542FileMode.Open); 3630dataStream = new FileStream(url, FileMode.Open);
Common\Utilities\XmlSerializer.cs (1)
2872 FileStream stream = new FileStream(fileName, FileMode.Open);
System.Web.Extensions (2)
ClientServices\Providers\ClientData.cs (2)
216using(IsolatedStorageFileStream fs = new IsolatedStorageFileStream(fileName, FileMode.Open, f)) { 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.Windows.Forms.DataVisualization (3)
Common\General\Chart.cs (2)
3542FileMode.Open); 3630dataStream = new FileStream(url, FileMode.Open);
Common\Utilities\XmlSerializer.cs (1)
2872 FileStream stream = new FileStream(fileName, FileMode.Open);
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 (37)
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 (1)
289using (Stream s = part.GetStream(FileMode.Open, FileAccess.Read))
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (1)
564Stream stream = part.GetStream(FileMode.Open, FileAccess.Read);
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)
73if (mode == FileMode.OpenOrCreate || mode == FileMode.Open) 140case FileMode.Open: 614if ((mode != FileMode.Append) && (mode != FileMode.Create) && (mode != FileMode.CreateNew) && (mode != FileMode.Open) 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}, 686{(int)FileMode.Open, (int)FileAccess.ReadWrite, (int)FileShare.None, 0},
Base\MS\Internal\IO\Zip\ZipIOLocalFileBlock.cs (1)
458case FileMode.Open:
Base\System\IO\Packaging\CompoundFile\DataSpaceManager.cs (4)
1058using(Stream dataSpaceMapStream = dataSpaceMapStreamInfo.GetStream(FileMode.Open)) 1212using(Stream definitionStream = definitionStreamInfo.GetStream(FileMode.Open)) 1335using(Stream transformDefinition = transformPrimary.GetStream(FileMode.Open)) 1617using (Stream versionStream = versionStreamInfo.GetStream(FileMode.Open))
Base\System\IO\Packaging\CompoundFile\StorageRoot.cs (4)
121return CreateOnStream( baseStream, FileMode.Open ); 168else if( FileMode.Open == mode ) 288case FileMode.Open: 296goto case FileMode.Open;
Base\System\IO\Packaging\CompoundFile\StreamInfo.cs (2)
321case FileMode.Open: 535case FileMode.Open:
Base\System\IO\Packaging\EncryptedPackage.cs (6)
515root = StorageRoot.Open(fileName, FileMode.Open, FileAccess.Read, FileShare.Read); 573root = StorageRoot.CreateOnStream(stream, FileMode.Open); 753FileMode.Open, 1004_packageStream = siPackage.GetStream(FileMode.Open, this.FileOpenAccess); 1164_package = Package.Open(_packageStream, FileMode.Open, this.FileOpenAccess); 1231private const FileMode _defaultFileModeForOpen = FileMode.Open;
Base\System\IO\Packaging\Package.cs (1)
1459private static readonly FileMode _defaultStreamMode = FileMode.Open;
Base\System\IO\Packaging\ZipPackage.cs (2)
1303return _contentTypeFileInfo.GetStream(FileMode.Open, FileAccess.Read); 1315pieces, FileMode.Open, FileAccess.Read);