42 references to None
mscorlib (16)
system\io\file.cs (6)
221return new FileStream(path, FileMode.Create, FileAccess.ReadWrite, FileShare.None, bufferSize); 228FileShare.None, bufferSize, options); 234FileShare.None, bufferSize, options, fileSecurity); 468return Open(path, mode, (mode == FileMode.Append ? FileAccess.Write : FileAccess.ReadWrite), FileShare.None); 474return Open(path,mode, access, FileShare.None); 777FileAccess.Write, FileShare.None);
system\io\fileinfo.cs (3)
406return Open(mode, FileAccess.ReadWrite, FileShare.None); 412return Open(mode, access, FileShare.None); 438FileAccess.Write, FileShare.None);
system\io\filestream.cs (1)
652else if (tempshare < FileShare.None || tempshare > (FileShare.ReadWrite | FileShare.Delete))
system\io\isolatedstorage\isolatedstoragefile.cs (1)
1276return new IsolatedStorageFileStream(path, FileMode.Create, FileAccess.ReadWrite, FileShare.None, this);
system\io\isolatedstorage\isolatedstoragefilestream.cs (4)
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) 73FileShare.Read: FileShare.None, DefaultBufferSize, null) { 82FileShare.Read: FileShare.None, DefaultBufferSize, isf) {
system\resources\resourcewriter.cs (1)
109_output = new FileStream(fileName, FileMode.Create, FileAccess.Write, FileShare.None);
PresentationCore (1)
Core\CSharp\System\Windows\Input\Cursor.cs (1)
269using (FileStream fileStream = new FileStream(filePath, FileMode.Open, FileAccess.Write, FileShare.None))
System (1)
net\System\Net\Cache\IERequestCache.cs (1)
815base(entry.Filename, FileMode.Create, FileAccess.ReadWrite, FileShare.None, 4096, async) {
System.Core (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
148FileStream fileStream = new FileStream(path, mode, GetFileStreamFileSystemRights(access), FileShare.None, 0x1000, FileOptions.None);
System.Data (1)
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (1)
622System.IO.FileShare shareAccess = System.IO.FileShare.None;
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
121System.IO.FileShare.None);
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
280System.IO.FileShare.None);
System.IO.Log (2)
System\IO\Log\LogStore.cs (2)
53: this(path, mode, access, FileShare.None) 547if (share < FileShare.None || share > (FileShare.ReadWrite | FileShare.Delete))
System.Web (1)
HttpInputStream.cs (1)
236_filestream = new FileStream(_filename, FileMode.Create, FileAccess.ReadWrite, FileShare.None, 4096, FileOptions.DeleteOnClose);
WindowsBase (17)
Base\MS\Internal\IO\Zip\ZipArchive.cs (11)
130ValidateModeAccessShareStreaming(stream, mode, access, FileShare.None, streaming); 602else if (share != FileShare.Read && share != FileShare.None) 623else if ((share != FileShare.Delete) && (share != FileShare.Inheritable) && (share != FileShare.None) && 674{(int)FileMode.Create, (int)FileAccess.Write, (int)FileShare.None, 1}, 676{(int)FileMode.Create, (int)FileAccess.ReadWrite, (int)FileShare.None, 0}, 677{(int)FileMode.CreateNew, (int)FileAccess.Write, (int)FileShare.None, 1}, 679{(int)FileMode.CreateNew, (int)FileAccess.ReadWrite, (int)FileShare.None, 0}, 680{(int)FileMode.Open, (int)FileAccess.Read, (int)FileShare.None, 1}, 681{(int)FileMode.Open, (int)FileAccess.Read, (int)FileShare.None, 0}, 686{(int)FileMode.Open, (int)FileAccess.ReadWrite, (int)FileShare.None, 0}, 687{(int)FileMode.OpenOrCreate, (int)FileAccess.ReadWrite, (int)FileShare.None, 0}
Base\System\IO\Packaging\CompoundFile\StorageRoot.cs (2)
43const FileShare defaultFileShare = FileShare.None; 325else if( share == FileShare.None ) // FileShare.None is zero, using "&" to check causes unreachable code error
Base\System\IO\Packaging\EncryptedPackage.cs (1)
1229private const FileShare _defaultFileShare = FileShare.None;
Base\System\IO\Packaging\Package.cs (2)
1212&& packageShare != FileShare.Read && packageShare != FileShare.None) 1457private static readonly FileShare _defaultFileShare = FileShare.None;
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
739fileName, FileMode.Create, FileAccess.ReadWrite, FileShare.None,