50 references to FileOptions
mscorlib (33)
system\io\file.cs (4)
226
public static FileStream Create(String path, int bufferSize,
FileOptions
options) {
232
public static FileStream Create(String path, int bufferSize,
FileOptions
options, FileSecurity fileSecurity) {
918
FileStream.DefaultBufferSize,
FileOptions
.None, Path.GetFileName(path), false, false, checkHost)) {
979
FileStream.DefaultBufferSize,
FileOptions
.None, Path.GetFileName(path), false, false, checkHost))
system\io\filestream.cs (23)
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) {
526
: this(path, mode, access, share, DefaultBufferSize,
FileOptions
.None, Path.GetFileName(path), false) {
533
: this(path, mode, access, share, bufferSize,
FileOptions
.None, Path.GetFileName(path), false)
541
public FileStream(String path, FileMode mode, FileAccess access, FileShare share, int bufferSize,
FileOptions
options)
554
: this(path, mode, access, share, bufferSize, (useAsync ?
FileOptions
.Asynchronous :
FileOptions
.None), Path.GetFileName(path), false)
564
public FileStream(String path, FileMode mode, FileSystemRights rights, FileShare share, int bufferSize,
FileOptions
options, FileSecurity fileSecurity)
582
public FileStream(String path, FileMode mode, FileSystemRights rights, FileShare share, int bufferSize,
FileOptions
options)
592
internal FileStream(String path, FileMode mode, FileAccess access, FileShare share, int bufferSize,
FileOptions
options, String msgPath, bool bFromProxy)
601
internal FileStream(String path, FileMode mode, FileAccess access, FileShare share, int bufferSize,
FileOptions
options, String msgPath, bool bFromProxy, bool useLongPath)
610
internal FileStream(String path, FileMode mode, FileAccess access, FileShare share, int bufferSize,
FileOptions
options, String msgPath, bool bFromProxy, bool useLongPath, bool checkHost)
620
private void Init(String path, FileMode mode, FileAccess access, int rights, bool useRights, FileShare share, int bufferSize,
FileOptions
options, Win32Native.SECURITY_ATTRIBUTES secAttrs, String msgPath, bool bFromProxy, bool useLongPath, bool checkHost)
659
if (options !=
FileOptions
.None && (options & ~(
FileOptions
.WriteThrough |
FileOptions
.Asynchronous |
FileOptions
.RandomAccess |
FileOptions
.DeleteOnClose |
FileOptions
.SequentialScan |
FileOptions
.Encrypted | (
FileOptions
)0x20000000 /* NoBuffering */)) != 0)
826
if (_canUseAsync && (options &
FileOptions
.Asynchronous) != 0)
829
options &= ~
FileOptions
.Asynchronous;
system\io\isolatedstorage\isolatedstoragefilestream.cs (1)
242
FileOptions
.None, m_GivenPath, true, true);
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)
227
DefaultFileStreamBufferSize,
FileOptions
.SequentialScan, Path.GetFileName(path), false, false, checkHost);
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 (2)
364
4096,
FileOptions
.DeleteOnClose |
FileOptions
.SequentialScan);
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.Core (2)
System\IO\LogStream.cs (1)
92
int flagsAndAttributes = (int)
FileOptions
.None | (UnsafeNativeMethods.SECURITY_SQOS_PRESENT | UnsafeNativeMethods.SECURITY_ANONYMOUS);
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
148
FileStream fileStream = new FileStream(path, mode, GetFileStreamFileSystemRights(access), FileShare.None, 0x1000,
FileOptions
.None);
System.Data (12)
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (12)
57
: this ( path, transactionContext, access, System.IO.
FileOptions
.None, 0 )
66
System.IO.
FileOptions
options,
578
System.IO.
FileOptions
options,
595
if ( ( options & ~(
FileOptions
.WriteThrough |
FileOptions
.Asynchronous |
FileOptions
.RandomAccess |
FileOptions
.SequentialScan ) ) != 0 )
649
if ((options & System.IO.
FileOptions
.WriteThrough) != 0)
654
if ((options & System.IO.
FileOptions
.Asynchronous) == 0)
659
if ((options & System.IO.
FileOptions
.SequentialScan) != 0)
664
if ( (options & System.IO.
FileOptions
.RandomAccess) != 0)
788
m_fs = new System.IO.FileStream ( hFile, access, DefaultBufferSize, ( ( options & System.IO.
FileOptions
.Asynchronous ) != 0 ) );
System.Web (2)
Configuration\RemoteWebConfigurationHostServer.cs (1)
108
tempFileStream = new FileStream(tempFile, FileMode.CreateNew, FileAccess.Write, FileShare.ReadWrite, data.Length,
FileOptions
.WriteThrough);
HttpInputStream.cs (1)
236
_filestream = new FileStream(_filename, FileMode.Create, FileAccess.ReadWrite, FileShare.None, 4096,
FileOptions
.DeleteOnClose);