100 references to Write
Microsoft.Activities.Build (1)
Microsoft\Activities\Build\Validation\ValidationBuildExtension.cs (1)
66using (FileStream stream = new FileStream(filePath, FileMode.Create, FileAccess.Write))
mscorlib (24)
system\console.cs (2)
1854FileAccess.Write, bufferSize); 1896FileAccess.Write, bufferSize);
system\io\__consolestream.cs (2)
55_canWrite = ( (access & FileAccess.Write) == FileAccess.Write);
system\io\file.cs (6)
468return Open(path, mode, (mode == FileMode.Append ? FileAccess.Write : FileAccess.ReadWrite), FileShare.None); 496using(OpenFile(path, FileAccess.Write, out handle)) { 560using(OpenFile(path, FileAccess.Write, out handle)) { 624using(OpenFile(path, FileAccess.Write, out handle)) { 777FileAccess.Write, FileShare.None); 978using (FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.Read,
system\io\fileinfo.cs (1)
438FileAccess.Write, FileShare.None);
system\io\filestream.cs (7)
512: this(path, mode, (mode == FileMode.Append ? FileAccess.Write : FileAccess.ReadWrite), FileShare.Read, DefaultBufferSize, FileOptions.None, Path.GetFileName(path), false) { 667if ((!useRights && (access & FileAccess.Write) == 0) 690access = FileAccess.Write; 701access == FileAccess.Write? GENERIC_WRITE: 776if ((!useRights && (access & FileAccess.Write) != 0) 929_canWrite = (access & FileAccess.Write) != 0; 1028_canWrite = 0 != (access & FileAccess.Write);
system\io\isolatedstorage\isolatedstoragefilestream.cs (2)
56: this(path, mode, (mode == FileMode.Append ? FileAccess.Write : FileAccess.ReadWrite), FileShare.None, null) { 63: this(path, mode, (mode == FileMode.Append ? FileAccess.Write : FileAccess.ReadWrite), FileShare.None, isf)
system\io\streamwriter.cs (1)
226FileStream f = new FileStream(path, mode, FileAccess.Write, FileShare.Read,
system\io\unmanagedmemoryaccessor.cs (1)
109_canWrite = (_access & FileAccess.Write) != 0;
system\io\unmanagedmemorystream.cs (1)
270get { return _isOpen && (_access & FileAccess.Write) != 0; }
system\resources\resourcewriter.cs (1)
109_output = new FileStream(fileName, FileMode.Create, FileAccess.Write, FileShare.None);
PresentationBuildTasks (1)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1301using (FileStream bamlFileStream = new FileStream(filepath, FileMode.Create, FileAccess.Write))
PresentationCore (1)
Core\CSharp\System\Windows\Input\Cursor.cs (1)
269using (FileStream fileStream = new FileStream(filePath, FileMode.Open, FileAccess.Write, FileShare.None))
System (13)
compmod\microsoft\csharp\csharpcodeprovider.cs (2)
674Stream temp = new FileStream(responseFileName, FileMode.Create, FileAccess.Write, FileShare.Read); 3737Stream temp = new FileStream(filenames[i], FileMode.Create, FileAccess.Write, FileShare.Read);
compmod\system\codedom\compiler\CodeCompiler.cs (2)
265Stream temp = new FileStream(filenames[i], FileMode.Create, FileAccess.Write, FileShare.Read); 458Stream temp = new FileStream(responseFileName, FileMode.Create, FileAccess.Write, FileShare.Read);
compmod\system\codedom\compiler\Executor.cs (1)
57return new FileStream(file, FileMode.CreateNew, FileAccess.Write, FileShare.Read | FileShare.Inheritable);
compmod\system\codedom\compiler\TempFiles.cs (1)
221using (tempFileStream = new FileStream(tempFileName, FileMode.CreateNew, FileAccess.Write)) { }
net\System\Net\filewebrequest.cs (2)
434request.m_stream = new FileWebStream(request, request.m_uri.LocalPath, FileMode.Create, FileAccess.Write, FileShare.Read); 435request.m_fileAccess = FileAccess.Write;
net\System\Net\filewebresponse.cs (1)
35if (access == FileAccess.Write) {
net\System\Net\Sockets\NetworkStream.cs (1)
421case FileAccess.Write:
net\System\Net\webclient.cs (2)
395fs = new FileStream(fileName, FileMode.Create, FileAccess.Write); 2100fs = new FileStream(fileName, FileMode.Create, FileAccess.Write);
services\monitoring\system\diagnosticts\Process.cs (1)
2154standardInput = new StreamWriter(new FileStream(standardInputWritePipeHandle, FileAccess.Write, 4096, false), Console.InputEncoding, 4096);
System.Configuration (2)
System\Configuration\Internal\InternalConfigHost.cs (1)
247stream = new FileStream(writeFileContext.TempNewFilename, FileMode.Create, FileAccess.Write, FileShare.Read);
System\Configuration\Internal\WriteFileContext.cs (1)
169FileAccess.Write,
System.Core (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
754return FileAccess.Write;
System.Data (3)
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (3)
523case FileAccess.Write: 591if (access != FileAccess.Read && access != FileAccess.Write && access != FileAccess.ReadWrite) 632case System.IO.FileAccess.Write:
System.IO.Log (6)
System\IO\Log\FileRecordSequence.cs (1)
146if ((this.access & FileAccess.Write) == 0)
System\IO\Log\LogRecordSequence.cs (2)
328if ((this.store.Access & FileAccess.Write) == 0) 432if ((this.store.Access & FileAccess.Write) == 0)
System\IO\Log\LogStore.cs (3)
118access == FileAccess.Write ? GENERIC_WRITE : 552if ((mode == FileMode.CreateNew) && ((access & FileAccess.Write) == 0)) 556if ((mode == FileMode.OpenOrCreate) && ((access & FileAccess.Write) == 0))
System.Web (5)
Compilation\AssemblyBuilder.cs (2)
241Stream temp = new FileStream(generatedFilePath, FileMode.Create, FileAccess.Write, FileShare.Read); 1298Stream temp = new FileStream(generatedCodeFile, FileMode.Create, FileAccess.Write, FileShare.Read);
Configuration\BrowserCapabilitiesCodeGenerator.cs (1)
845using (FileStream pktStream = new FileStream(filename, FileMode.Create, FileAccess.Write)) {
Configuration\RemoteWebConfigurationHostServer.cs (1)
108tempFileStream = new FileStream(tempFile, FileMode.CreateNew, FileAccess.Write, FileShare.ReadWrite, data.Length, FileOptions.WriteThrough);
Configuration\StrongNameUtility.cs (1)
50using (FileStream snkStream = new FileStream(filename, FileMode.Create, FileAccess.Write)) {
System.Windows.Forms (1)
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
5333FileStream fs = new FileStream(fullFileName, FileMode.Create, FileAccess.Write);
System.Workflow.ComponentModel (2)
AuthoringOM\Compiler\CompileXomlTask.cs (1)
630using (StreamWriter fileStream = new StreamWriter(new FileStream(tempFile, FileMode.Create, FileAccess.Write), Encoding.UTF8))
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
708Stream temp = new FileStream(filenames[i], FileMode.Create, FileAccess.Write, FileShare.Read);
System.Xml (2)
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);
WindowsBase (38)
Base\MS\Internal\IO\Packaging\Certificate.cs (1)
134using (Stream s = _part.GetStream(FileMode.Create, FileAccess.Write))
Base\MS\Internal\IO\Packaging\CompoundFile\CFStream.cs (2)
69return (!StreamDisposed && (FileAccess.Write == (access & FileAccess.Write) ||
Base\MS\Internal\IO\Packaging\CompoundFile\NativeCompoundFileAPIs.cs (5)
66if( FileAccess.Write == access ) 73( (FileAccess.Read | FileAccess.Write) == (access & (FileAccess.Read | FileAccess.Write))) ) 77else if( FileAccess.Write == (access & FileAccess.Write) )
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (2)
248if (package.FileOpenAccess != FileAccess.Write && package.PartExists(_uri)) 781FileMode.CreateNew, FileAccess.Write);
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (3)
506if (_package.FileOpenAccess == FileAccess.Write) 772writerStream = _propertyPart.GetStream(FileMode.Create, FileAccess.Write); 774writerStream = new IgnoreFlushAndCloseStream(_propertyPart.GetStream(FileMode.Create, FileAccess.Write));
Base\MS\Internal\IO\Packaging\streamingZipPartStream.cs (1)
58&& access == FileAccess.Write) )
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (1)
999using (Stream s = SignaturePart.GetStream(FileMode.Create, FileAccess.Write))
Base\MS\Internal\IO\Zip\ZipArchive.cs (9)
226if (_openAccess == FileAccess.Write) 323if (_openAccess == FileAccess.Write) 500if (_openAccess == FileAccess.ReadWrite || _openAccess == FileAccess.Write) 580if ((access == FileAccess.Write || access == FileAccess.ReadWrite) && !stream.CanWrite) 619else if ((access != FileAccess.Read) && (access != FileAccess.ReadWrite) && (access != FileAccess.Write)) 674{(int)FileMode.Create, (int)FileAccess.Write, (int)FileShare.None, 1}, 675{(int)FileMode.Create, (int)FileAccess.Write, (int)FileShare.Read, 1}, 677{(int)FileMode.CreateNew, (int)FileAccess.Write, (int)FileShare.None, 1}, 678{(int)FileMode.CreateNew, (int)FileAccess.Write, (int)FileShare.Read, 1},
Base\MS\Internal\IO\Zip\ZipIOLocalFileBlock.cs (1)
832case FileAccess.Write:
Base\MS\Internal\IO\Zip\ZipIOModeEnforcingStream.cs (2)
73((_access == FileAccess.Write) || (_access == FileAccess.ReadWrite))); 265if (_access == FileAccess.ReadWrite || _access == FileAccess.Write)
Base\System\IO\Packaging\EncryptedPackage.cs (1)
746fileAccessForPackage |= FileAccess.Write;
Base\System\IO\Packaging\Package.cs (7)
77_inStreamingCreation = (openFileAccess == FileAccess.Write && streaming); 926if (_openFileAccess == FileAccess.Write) 1209if (packageAccess != FileAccess.Write) 1232if (!s.CanWrite && (access == FileAccess.ReadWrite || access == FileAccess.Write)) 1242if ((s.CanRead && s.CanWrite) && (access == FileAccess.Read || access == FileAccess.Write)) 1504Debug.Assert(access==FileAccess.Read || access == FileAccess.Write, 1515if (access == FileAccess.Write)
Base\System\IO\Packaging\PackagePart.cs (2)
815(_container.FileOpenAccess == FileAccess.Write && access != FileAccess.Write) )
Base\System\IO\Packaging\ZipPackage.cs (1)
1497FileMode.Create, FileAccess.Write);