4 types derived from FileStream
mscorlib (1)
System (3)
161 instantiations of FileStream
Microsoft.Activities.Build (2)
mscorlib (28)
system\io\file.cs (9)
221return new FileStream(path, FileMode.Create, FileAccess.ReadWrite, FileShare.None, bufferSize);
227return new FileStream(path, FileMode.Create, FileAccess.ReadWrite,
233return new FileStream(path, FileMode.Create, FileSystemRights.Read | FileSystemRights.Write,
480return new FileStream(path, mode, access, share);
769return new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
776return new FileStream(path, FileMode.OpenOrCreate,
917using(FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read,
978using (FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.Read,
1457FileStream fs = new FileStream(path, FileMode.Open, access, FileShare.ReadWrite, 1);
PresentationBuildTasks (5)
PresentationCore (5)
PresentationFramework (8)
System (29)
compmod\microsoft\csharp\csharpcodeprovider.cs (5)
674Stream temp = new FileStream(responseFileName, FileMode.Create, FileAccess.Write, FileShare.Read);
3399new FileStream(options.OutputAssembly, FileMode.Create, FileAccess.ReadWrite).Close();
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\system\codedom\compiler\CodeCompiler.cs (6)
265Stream temp = new FileStream(filenames[i], FileMode.Create, FileAccess.Write, FileShare.Read);
348new FileStream(options.OutputAssembly, FileMode.Create, FileAccess.ReadWrite).Close();
375FileStream outputStream = new FileStream(outputFile, FileMode.Open,
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);
services\monitoring\system\diagnosticts\Process.cs (3)
2154standardInput = new StreamWriter(new FileStream(standardInputWritePipeHandle, FileAccess.Write, 4096, false), Console.InputEncoding, 4096);
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.Presentation (2)
System.AddIn (1)
System.Configuration (5)
System.Core (1)
System.Data (6)
System.Data.Entity.Design (1)
System.Data.Services.Design (1)
System.Drawing (1)
System.IO.Log (1)
System.Management (1)
System.Runtime.Remoting (1)
System.Web (30)
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);
System.Web.DataVisualization (7)
System.Web.Extensions (1)
System.Web.Services (1)
System.Windows.Forms (8)
System.Windows.Forms.DataVisualization (5)
System.Workflow.ComponentModel (2)
System.WorkflowServices (2)
System.Xml (5)
WindowsBase (1)
182 references to FileStream
Microsoft.Activities.Build (2)
mscorlib (58)
system\io\file.cs (17)
178using(SafeFileHandle handle = Win32Native.UnsafeCreateFile(fullSourceFileName, FileStream.GENERIC_READ, FileShare.Read, null, FileMode.Open, 0, IntPtr.Zero)) {
206public static FileStream Create(String path) {
207return Create(path, FileStream.DefaultBufferSize);
220public static FileStream Create(String path, int bufferSize) {
226public static FileStream Create(String path, int bufferSize, FileOptions options) {
232public static FileStream Create(String path, int bufferSize, FileOptions options, FileSecurity fileSecurity) {
467public static FileStream Open(String path, FileMode mode) {
473public static FileStream Open(String path, FileMode mode, FileAccess access) {
479public static FileStream Open(String path, FileMode mode, FileAccess access, FileShare share) {
754public static FileStream OpenRead(String path) {
775public static FileStream OpenWrite(String path) {
917using(FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read,
918FileStream.DefaultBufferSize, FileOptions.None, Path.GetFileName(path), false, false, checkHost)) {
978using (FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.Read,
979FileStream.DefaultBufferSize, FileOptions.None, Path.GetFileName(path), false, false, checkHost))
1455private static FileStream OpenFile(String path, FileAccess access, out SafeFileHandle handle)
1457FileStream fs = new FileStream(path, FileMode.Open, access, FileShare.ReadWrite, 1);
PresentationBuildTasks (3)
PresentationCore (5)
PresentationFramework (9)
System (30)
System.Activities (1)
System.Activities.Presentation (2)
System.AddIn (2)
System.Configuration (1)
System.Core (6)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (6)
34private FileStream _fileStream;
47private MemoryMappedFile(SafeMemoryMappedFileHandle handle, FileStream fileStream, bool leaveOpen) {
148FileStream fileStream = new FileStream(path, mode, GetFileStreamFileSystemRights(access), FileShare.None, 0x1000, FileOptions.None);
184public static MemoryMappedFile CreateFromFile(FileStream fileStream, String mapName, Int64 capacity,
192public static MemoryMappedFile CreateFromFile(FileStream fileStream, String mapName, Int64 capacity,
802private static void CleanupFile(FileStream fileStream, bool existed, String path) {
System.Data (8)
System.Data.Entity (1)
System.Drawing (3)
System.Runtime.Remoting (1)
System.Web (25)
System.Web.DataVisualization (8)
System.Web.Extensions (2)
System.Web.Services (1)
System.Windows.Forms (4)
System.Windows.Forms.DataVisualization (4)
System.Workflow.ComponentModel (1)
System.WorkflowServices (2)
System.Xml (2)
WindowsBase (1)