518 references to FileAccess
Microsoft.Activities.Build (1)
Microsoft\Activities\Build\Validation\ValidationBuildExtension.cs (1)
66
using (FileStream stream = new FileStream(filePath, FileMode.Create,
FileAccess
.Write))
mscorlib (118)
system\activationcontext.cs (1)
445
using (FileStream fs = new FileStream(manifestPath, FileMode.Open,
FileAccess
.Read))
system\console.cs (4)
479
private static Stream GetStandardFile(int stdHandleName,
FileAccess
access, int bufferSize) {
1854
FileAccess
.Write, bufferSize);
1875
FileAccess
.Read, bufferSize);
1896
FileAccess
.Write, bufferSize);
system\io\__consolestream.cs (5)
50
internal __ConsoleStream(SafeFileHandle handle,
FileAccess
access, bool useFileAPIs)
54
_canRead = ( (access &
FileAccess
.Read) ==
FileAccess
.Read );
55
_canWrite = ( (access &
FileAccess
.Write) ==
FileAccess
.Write);
system\io\file.cs (14)
221
return new FileStream(path, FileMode.Create,
FileAccess
.ReadWrite, FileShare.None, bufferSize);
227
return new FileStream(path, FileMode.Create,
FileAccess
.ReadWrite,
468
return Open(path, mode, (mode == FileMode.Append ?
FileAccess
.Write :
FileAccess
.ReadWrite), FileShare.None);
473
public static FileStream Open(String path, FileMode mode,
FileAccess
access) {
479
public static FileStream Open(String path, FileMode mode,
FileAccess
access, FileShare share) {
496
using(OpenFile(path,
FileAccess
.Write, out handle)) {
560
using(OpenFile(path,
FileAccess
.Write, out handle)) {
624
using(OpenFile(path,
FileAccess
.Write, out handle)) {
769
return new FileStream(path, FileMode.Open,
FileAccess
.Read, FileShare.Read);
777
FileAccess
.Write, FileShare.None);
917
using(FileStream fs = new FileStream(path, FileMode.Open,
FileAccess
.Read, FileShare.Read,
978
using (FileStream fs = new FileStream(path, FileMode.Create,
FileAccess
.Write, FileShare.Read,
1455
private static FileStream OpenFile(String path,
FileAccess
access, out SafeFileHandle handle)
system\io\fileinfo.cs (5)
406
return Open(mode,
FileAccess
.ReadWrite, FileShare.None);
411
public FileStream Open(FileMode mode,
FileAccess
access) {
417
public FileStream Open(FileMode mode,
FileAccess
access, FileShare share) {
429
return new FileStream(FullPath, FileMode.Open,
FileAccess
.Read,
438
FileAccess
.Write, FileShare.None);
system\io\filestream.cs (34)
512
: this(path, mode, (mode == FileMode.Append ?
FileAccess
.Write :
FileAccess
.ReadWrite), FileShare.Read, DefaultBufferSize, FileOptions.None, Path.GetFileName(path), false) {
518
public FileStream(String path, FileMode mode,
FileAccess
access)
525
public FileStream(String path, FileMode mode,
FileAccess
access, FileShare share)
532
public FileStream(String path, FileMode mode,
FileAccess
access, FileShare share, int bufferSize)
541
public FileStream(String path, FileMode mode,
FileAccess
access, FileShare share, int bufferSize, FileOptions options)
553
public FileStream(String path, FileMode mode,
FileAccess
access, FileShare share, int bufferSize, bool useAsync)
569
Init(path, mode, (
FileAccess
)0, (int)rights, true, share, bufferSize, options, secAttrs, Path.GetFileName(path), false, false, false);
585
Init(path, mode, (
FileAccess
)0, (int)rights, true, share, bufferSize, options, secAttrs, Path.GetFileName(path), false, false, false);
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)
646
else if (!useRights && (access <
FileAccess
.Read || access >
FileAccess
.ReadWrite))
667
if ((!useRights && (access &
FileAccess
.Write) == 0)
690
access =
FileAccess
.Write;
700
fAccess = access ==
FileAccess
.Read? GENERIC_READ:
701
access ==
FileAccess
.Write? GENERIC_WRITE:
734
if ((!useRights && (access &
FileAccess
.Read) != 0) || (useRights && (fileSystemRights & FileSystemRights.ReadAndExecute) != 0))
776
if ((!useRights && (access &
FileAccess
.Write) != 0)
928
_canRead = (access &
FileAccess
.Read) != 0;
929
_canWrite = (access &
FileAccess
.Write) != 0;
959
public FileStream(IntPtr handle,
FileAccess
access)
966
public FileStream(IntPtr handle,
FileAccess
access, bool ownsHandle)
973
public FileStream(IntPtr handle,
FileAccess
access, bool ownsHandle, int bufferSize)
985
public FileStream(IntPtr handle,
FileAccess
access, bool ownsHandle, int bufferSize, bool isAsync)
992
public FileStream(SafeFileHandle handle,
FileAccess
access)
999
public FileStream(SafeFileHandle handle,
FileAccess
access, int bufferSize)
1009
public FileStream(SafeFileHandle handle,
FileAccess
access, int bufferSize, bool isAsync) {
1019
if (access <
FileAccess
.Read || access >
FileAccess
.ReadWrite)
1027
_canRead = 0 != (access &
FileAccess
.Read);
1028
_canWrite = 0 != (access &
FileAccess
.Write);
system\io\isolatedstorage\isolatedstoragefile.cs (3)
1265
public IsolatedStorageFileStream OpenFile(string path, FileMode mode,
FileAccess
access) {
1270
public IsolatedStorageFileStream OpenFile(string path, FileMode mode,
FileAccess
access, FileShare share) {
1276
return new IsolatedStorageFileStream(path, FileMode.Create,
FileAccess
.ReadWrite, FileShare.None, this);
system\io\isolatedstorage\isolatedstoragefilestream.cs (12)
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)
71
FileAccess
access)
72
: this(path, mode, access, access ==
FileAccess
.Read?
80
FileAccess
access, IsolatedStorageFile isf)
81
: this(path, mode, access, access ==
FileAccess
.Read?
89
FileAccess
access, FileShare share)
97
FileAccess
access, FileShare share, IsolatedStorageFile isf)
105
FileAccess
access, FileShare share, int bufferSize)
116
FileAccess
access, FileShare share, int bufferSize,
system\io\pinnedbuffermemorystream.cs (1)
49
Initialize(ptr, len, len,
FileAccess
.Read, 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)
226
FileStream f = new FileStream(path, mode,
FileAccess
.Write, FileShare.Read,
system\io\unmanagedmemoryaccessor.cs (8)
40
private
FileAccess
_access;
55
Initialize(buffer, offset, capacity,
FileAccess
.Read);
59
public UnmanagedMemoryAccessor(SafeBuffer buffer, Int64 offset, Int64 capacity,
FileAccess
access) {
65
protected void Initialize(SafeBuffer buffer, Int64 offset, Int64 capacity,
FileAccess
access) {
78
if (access <
FileAccess
.Read || access >
FileAccess
.ReadWrite) {
108
_canRead = (_access &
FileAccess
.Read) != 0;
109
_canWrite = (_access &
FileAccess
.Write) != 0;
system\io\unmanagedmemorystream.cs (17)
103
private
FileAccess
_access;
123
Initialize(buffer, offset, length,
FileAccess
.Read, false);
127
public UnmanagedMemoryStream(SafeBuffer buffer, long offset, long length,
FileAccess
access) {
135
internal UnmanagedMemoryStream(SafeBuffer buffer, long offset, long length,
FileAccess
access, bool skipSecurityCheck) {
140
protected void Initialize(SafeBuffer buffer, long offset, long length,
FileAccess
access) {
145
internal void Initialize(SafeBuffer buffer, long offset, long length,
FileAccess
access, bool skipSecurityCheck) {
158
if (access <
FileAccess
.Read || access >
FileAccess
.ReadWrite) {
201
Initialize(pointer, length, length,
FileAccess
.Read, false);
206
public unsafe UnmanagedMemoryStream(byte* pointer, long length, long capacity,
FileAccess
access)
215
internal unsafe UnmanagedMemoryStream(byte* pointer, long length, long capacity,
FileAccess
access, bool skipSecurityCheck)
222
protected unsafe void Initialize(byte* pointer, long length, long capacity,
FileAccess
access)
228
internal unsafe void Initialize(byte* pointer, long length, long capacity,
FileAccess
access, bool skipSecurityCheck)
240
if (access <
FileAccess
.Read || access >
FileAccess
.ReadWrite)
260
get { return _isOpen && (_access &
FileAccess
.Read) != 0; }
270
get { return _isOpen && (_access &
FileAccess
.Write) != 0; }
system\reflection\assembly.cs (3)
2268
FileAccess
.Read, FileShare.Read, FileStream.DefaultBufferSize, false);
2287
FileAccess
.Read, FileShare.Read, FileStream.DefaultBufferSize, false);
2538
return new UnmanagedMemoryStream(pbInMemoryResource, (long)length, (long)length,
FileAccess
.Read, true);
system\resources\resourcereader.cs (2)
167
_store = new BinaryReader(new FileStream(fileName, FileMode.Open,
FileAccess
.Read, FileShare.Read, DefaultFileStreamBufferSize, FileOptions.RandomAccess, Path.GetFileName(fileName), false), Encoding.UTF8);
782
return new UnmanagedMemoryStream(_ums.PositionPointer, len, len,
FileAccess
.Read, true);
system\resources\resourcewriter.cs (2)
109
_output = new FileStream(fileName, FileMode.Create,
FileAccess
.Write, FileShare.None);
363
dataSection = new FileStream(tempFile, FileMode.Open,
FileAccess
.ReadWrite, FileShare.Read,
system\resources\runtimeresourceset.cs (1)
196
Stream stream = new FileStream(fileName, FileMode.Open,
FileAccess
.Read, FileShare.Read);
system\security\permissions\permissionattributes.cs (1)
1198
return BruteForceParseStream( new FileStream( m_file, FileMode.Open,
FileAccess
.Read) );
system\security\policy\applicationsecuritymanager.cs (1)
129
using (FileStream contents = new FileStream(s_machineConfigFile, FileMode.Open,
FileAccess
.Read))
system\security\policy\policylevel.cs (1)
808
using (FileStream stream = new FileStream(fileName, FileMode.Open,
FileAccess
.Read)) {
system\security\securitymanager.cs (1)
187
using (FileStream stream = new FileStream(path, FileMode.Open,
FileAccess
.Read)) {
PresentationBuildTasks (3)
BuildTasks\Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
64
_sourceStream = new FileStream(_sourcePath, FileMode.Open,
FileAccess
.Read, FileShare.Read);
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1301
using (FileStream bamlFileStream = new FileStream(filepath, FileMode.Create,
FileAccess
.Write))
Shared\System\Windows\Markup\ReflectionHelper.cs (1)
650
using (FileStream fileStream = File.Open(filepath, FileMode.Open,
FileAccess
.Read, FileShare.Read))
PresentationCore (12)
Core\CSharp\MS\Internal\AppModel\SiteOfOriginContainer.cs (1)
145
internal SiteOfOriginContainer() : base(
FileAccess
.Read)
Core\CSharp\MS\Internal\AppModel\SiteOfOriginPart.cs (1)
57
protected override Stream GetStreamCore(FileMode mode,
FileAccess
access)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
1088
Initialize((byte*)_viewHandle.Memory, size, size,
FileAccess
.Read);
Core\CSharp\MS\Internal\FontCache\FontSource.cs (1)
451
FileAccess
.Read
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)
278
Stream s = p.GetStream(FileMode.Open,
FileAccess
.Read);
684
Stream s = p.GetStream(FileMode.Open,
FileAccess
.Read);
Core\CSharp\System\Windows\Input\Cursor.cs (1)
269
using (FileStream fileStream = new FileStream(filePath, FileMode.Open,
FileAccess
.Write, FileShare.None))
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (3)
1208
bitmapStream = new System.IO.FileStream(uri.LocalPath, FileMode.Open,
FileAccess
.Read, FileShare.Read);
1239
bitmapStream = new System.IO.FileStream(uri.OriginalString, FileMode.Open,
FileAccess
.Read, FileShare.Read);
1472
bitmapStream = new System.IO.FileStream(uri.LocalPath, FileMode.Open,
FileAccess
.Read, FileShare.Read);
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (1)
177
entry.outputStream = new FileStream(fileHandle,
FileAccess
.ReadWrite);
PresentationFramework (25)
src\Framework\Microsoft\Win32\OpenFileDialog.cs (2)
114
fileStream = new FileStream(filename, FileMode.Open,
FileAccess
.Read, FileShare.Read);
171
fileStream = new FileStream(filename, FileMode.Open,
FileAccess
.Read, FileShare.Read);
src\Framework\Microsoft\Win32\SaveFileDialog.cs (1)
110
return new FileStream(filename, FileMode.Create,
FileAccess
.ReadWrite);
src\Framework\MS\Internal\AppModel\ContentFilePart.cs (2)
75
protected override Stream GetStreamCore(FileMode mode,
FileAccess
access)
171
s = System.IO.File.Open(filename, FileMode.Open,
FileAccess
.Read, ResourceContainer.FileShare);
src\Framework\MS\Internal\AppModel\ResourceContainer.cs (1)
103
internal ResourceContainer() : base(
FileAccess
.Read)
src\Framework\MS\Internal\AppModel\ResourcePart.cs (1)
87
protected override Stream GetStreamCore(FileMode mode,
FileAccess
access)
src\Framework\MS\Internal\IO\Packaging\ByteStream.cs (7)
51
internal ByteStream(object underlyingStream,
FileAccess
openAccess)
60
Debug.Assert(_access ==
FileAccess
.Read);
80
(
FileAccess
.Read == (_access &
FileAccess
.Read) ||
81
FileAccess
.ReadWrite == (_access &
FileAccess
.ReadWrite)));
435
FileAccess
_access;
src\Framework\MS\Internal\IO\Packaging\XpsFilter.cs (3)
370
FileAccess
fileAccess;
395
fileAccess =
FileAccess
.Read;
665
FileAccess
fileAccess,
src\Framework\System\Windows\Documents\Speller.cs (1)
1745
using (FileStream outputStream = FileHelper.CreateAndOpenTemporaryFile(out tmpFilePath,
FileAccess
.ReadWrite))
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (2)
520
using (FileStream stream = new FileStream(lexiconFilePath, FileMode.Open,
FileAccess
.Read))
705
using (FileStream sourceStream = new FileStream(sourcePath, FileMode.Open,
FileAccess
.Read))
src\Framework\System\Windows\Documents\WpfPayload.cs (3)
758
_package = Package.Open(stream, FileMode.Create,
FileAccess
.ReadWrite);
780
Package package = Package.Open(stream, FileMode.Create,
FileAccess
.ReadWrite);
801
Package package = Package.Open(stream, FileMode.Open,
FileAccess
.Read);
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
1403
FileStream fileStream = new FileStream(manifestName, FileMode.Open,
FileAccess
.Read);
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
53
var stream = new FileStream(fileName, FileMode.Open,
FileAccess
.Read, FileShare.Read);
System (55)
compmod\microsoft\csharp\csharpcodeprovider.cs (6)
674
Stream temp = new FileStream(responseFileName, FileMode.Create,
FileAccess
.Write, FileShare.Read);
3399
new FileStream(options.OutputAssembly, FileMode.Create,
FileAccess
.ReadWrite).Close();
3464
using (FileStream fs = new FileStream(options.OutputAssembly, FileMode.Open,
FileAccess
.Read, FileShare.Read))
3511
using(FileStream stream = File.Open(file, FileMode.Open,
FileAccess
.Read, share))
3737
Stream temp = new FileStream(filenames[i], FileMode.Create,
FileAccess
.Write, FileShare.Read);
3811
FileStream fileStream = new FileStream(name, FileMode.Create,
FileAccess
.ReadWrite, FileShare.Read);
compmod\microsoft\visualbasic\VBCodeProvider.cs (3)
2832
new FileStream(options.OutputAssembly, FileMode.Create,
FileAccess
.ReadWrite).Close();
2909
FileStream fs = new FileStream(outputAssemblyFile, FileMode.Open,
FileAccess
.Read, FileShare.Read);
2947
using(FileStream stream = File.Open(file, FileMode.Open,
FileAccess
.Read, share))
compmod\system\codedom\compiler\CodeCompiler.cs (6)
265
Stream temp = new FileStream(filenames[i], FileMode.Create,
FileAccess
.Write, FileShare.Read);
348
new FileStream(options.OutputAssembly, FileMode.Create,
FileAccess
.ReadWrite).Close();
376
FileAccess
.Read, FileShare.ReadWrite);
402
FileStream fs = new FileStream(options.OutputAssembly, FileMode.Open,
FileAccess
.Read, FileShare.Read);
458
Stream temp = new FileStream(responseFileName, FileMode.Create,
FileAccess
.Write, FileShare.Read);
503
FileStream fileStream = new FileStream(name, FileMode.Create,
FileAccess
.ReadWrite, FileShare.Read);
compmod\system\codedom\compiler\Executor.cs (1)
57
return new FileStream(file, FileMode.CreateNew,
FileAccess
.Write, FileShare.Read | FileShare.Inheritable);
compmod\system\codedom\compiler\TempFiles.cs (1)
221
using (tempFileStream = new FileStream(tempFileName, FileMode.CreateNew,
FileAccess
.Write)) { }
compmod\system\componentmodel\LicFileLicenseProvider.cs (1)
82
Stream licStream = new FileStream(licenseFile, FileMode.Open,
FileAccess
.Read, FileShare.Read);
net\System\Net\_PooledStream.cs (2)
164
m_NetworkStream.InitNetworkStream(socket,
FileAccess
.ReadWrite);
210
m_NetworkStream.InitNetworkStream(socket,
FileAccess
.ReadWrite);
net\System\Net\Cache\IERequestCache.cs (2)
628
: base(entry.Filename, FileMode.Open,
FileAccess
.Read, FileShare.Read | FileShare.Delete, 4096, async)
815
base(entry.Filename, FileMode.Create,
FileAccess
.ReadWrite, FileShare.None, 4096, async) {
net\System\Net\Configuration\UriSectionReader.cs (1)
65
using (FileStream configFile = new FileStream(configFilePath, FileMode.Open,
FileAccess
.Read))
net\System\Net\filewebrequest.cs (7)
29
FileAccess
m_fileAccess;
55
m_fileAccess =
FileAccess
.Read;
73
m_fileAccess = (
FileAccess
)serializationInfo.GetInt32("fileAccess");
434
request.m_stream = new FileWebStream(request, request.m_uri.LocalPath, FileMode.Create,
FileAccess
.Write, FileShare.Read);
435
request.m_fileAccess =
FileAccess
.Write;
566
public FileWebStream(FileWebRequest request, string path, FileMode mode,
FileAccess
access, FileShare sharing)
576
public FileWebStream(FileWebRequest request, string path, FileMode mode,
FileAccess
access, FileShare sharing, int length, bool async)
net\System\Net\filewebresponse.cs (5)
24
FileAccess
m_fileAccess;
31
internal FileWebResponse(FileWebRequest request, Uri uri,
FileAccess
access, bool asyncHint) {
35
if (access ==
FileAccess
.Write) {
50
FileAccess
.Read,
77
m_fileAccess = (
FileAccess
)serializationInfo.GetInt32("fileAccess");
net\System\Net\mail\Attachment.cs (2)
89
Stream stream = new FileStream(fileName, FileMode.Open,
FileAccess
.Read, FileShare.Read);
106
Stream stream = new FileStream(fileName, FileMode.Open,
FileAccess
.Read, FileShare.Read);
net\System\Net\Sockets\NetworkStream.cs (9)
62
InitNetworkStream(socket,
FileAccess
.ReadWrite);
77
InitNetworkStream(socket,
FileAccess
.ReadWrite);
89
InitNetworkStream(socket,
FileAccess
.ReadWrite);
97
public NetworkStream(Socket socket,
FileAccess
access) {
109
public NetworkStream(Socket socket,
FileAccess
access, bool ownsSocket) {
401
internal void InitNetworkStream(Socket socket,
FileAccess
Access) {
418
case
FileAccess
.Read:
421
case
FileAccess
.Write:
424
case
FileAccess
.ReadWrite:
net\System\Net\Sockets\Socket.cs (3)
1437
fileStream = new FileStream(fileName,FileMode.Open,
FileAccess
.Read,FileShare.Read);
3617
fileStream = new FileStream(fileName,FileMode.Open,
FileAccess
.Read,FileShare.Read);
9306
new FileStream(spe.m_FilePath,FileMode.Open,
FileAccess
.Read,FileShare.Read);
net\System\Net\webclient.cs (3)
395
fs = new FileStream(fileName, FileMode.Create,
FileAccess
.Write);
615
fs = new FileStream(fileName, FileMode.Open,
FileAccess
.Read);
2100
fs = new FileStream(fileName, FileMode.Create,
FileAccess
.Write);
services\monitoring\system\diagnosticts\Process.cs (3)
2154
standardInput = new StreamWriter(new FileStream(standardInputWritePipeHandle,
FileAccess
.Write, 4096, false), Console.InputEncoding, 4096);
2159
standardOutput = new StreamReader(new FileStream(standardOutputReadPipeHandle,
FileAccess
.Read, 4096, false), enc, true, 4096);
2163
standardError = new StreamReader(new FileStream(standardErrorReadPipeHandle,
FileAccess
.Read, 4096, false), enc, true, 4096);
System.Activities (1)
System\Activities\Debugger\SourceLocationProvider.cs (1)
147
using (FileStream fs = new FileStream(sourcePath, FileMode.Open,
FileAccess
.Read))
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.Configuration (5)
System\Configuration\AppSettingsSection.cs (1)
127
using (Stream sourceFileStream = new FileStream(sourceFileFullPath, FileMode.Open,
FileAccess
.Read, FileShare.Read)) {
System\Configuration\Internal\InternalConfigHost.cs (2)
144
return new FileStream(streamName, FileMode.Open,
FileAccess
.Read, FileShare.Read);
247
stream = new FileStream(writeFileContext.TempNewFilename, FileMode.Create,
FileAccess
.Write, FileShare.Read);
System\Configuration\Internal\WriteFileContext.cs (2)
169
FileAccess
.Write,
287
FileAccess
.Read,
System.Core (7)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (7)
748
internal static
FileAccess
GetFileAccess(MemoryMappedFileAccess access) {
751
return
FileAccess
.Read;
754
return
FileAccess
.Write;
757
return
FileAccess
.ReadWrite;
760
return
FileAccess
.ReadWrite;
763
return
FileAccess
.Read;
766
return
FileAccess
.ReadWrite;
System.Data (18)
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
2114
return new FileStream(filename,FileMode.Open,
FileAccess
.Read,FileShare.Read);
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (1)
288
using(FileStream fstream = new FileStream(udlfilename, FileMode.Open,
FileAccess
.Read, FileShare.Read)) {
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (16)
55
System.IO.
FileAccess
access
65
System.IO.
FileAccess
access,
510
System.IO.
FileAccess
access
519
case
FileAccess
.Read:
523
case
FileAccess
.Write:
527
case
FileAccess
.ReadWrite:
530
Debug.Assert(access == System.IO.
FileAccess
.ReadWrite);
577
System.IO.
FileAccess
access,
591
if (access !=
FileAccess
.Read && access !=
FileAccess
.Write && access !=
FileAccess
.ReadWrite)
626
case System.IO.
FileAccess
.Read:
632
case System.IO.
FileAccess
.Write:
638
case System.IO.
FileAccess
.ReadWrite:
641
Debug.Assert(access == System.IO.
FileAccess
.ReadWrite);
760
if ( access == System.IO.
FileAccess
.ReadWrite )
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
120
tempFileStream = new System.IO.FileStream(filename, System.IO.FileMode.CreateNew, System.IO.
FileAccess
.ReadWrite,
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
279
tempFileStream = new System.IO.FileStream(filename, System.IO.FileMode.CreateNew, System.IO.
FileAccess
.ReadWrite,
System.Drawing (1)
commonui\System\Drawing\Icon.cs (1)
101
using (FileStream f = new FileStream(fileName, FileMode.Open,
FileAccess
.Read, FileShare.Read)) {
System.IO.Log (28)
System\IO\Log\FileRecordSequence.cs (7)
24
FileAccess
access;
30
public FileRecordSequence(string path) : this(path,
FileAccess
.ReadWrite, 0) { }
32
public FileRecordSequence(string path,
FileAccess
access) : this(path, access, 0) { }
35
public FileRecordSequence(string path,
FileAccess
access, int size)
146
if ((this.access &
FileAccess
.Write) == 0)
543
if ((this.access &
FileAccess
.Read) == 0)
559
if ((this.access &
FileAccess
.Read) == 0)
System\IO\Log\FileRegion.cs (1)
79
FileAccess
.Read,
System\IO\Log\LogRecordSequence.cs (6)
56
FileAccess
access)
69
FileAccess
access,
83
FileAccess
access,
104
FileAccess
access,
328
if ((this.store.Access &
FileAccess
.Write) == 0)
432
if ((this.store.Access &
FileAccess
.Write) == 0)
System\IO\Log\LogStore.cs (14)
40
FileAccess
access;
45
: this(path, mode,
FileAccess
.ReadWrite)
52
FileAccess
access)
60
FileAccess
access,
73
FileAccess
access,
117
(access ==
FileAccess
.Read ? GENERIC_READ :
118
access ==
FileAccess
.Write ? GENERIC_WRITE :
142
bool writeOnly = (access &
FileAccess
.Read) == 0;
359
internal
FileAccess
Access
529
FileAccess
access,
542
if (access <
FileAccess
.Read || access >
FileAccess
.ReadWrite)
552
if ((mode == FileMode.CreateNew) && ((access &
FileAccess
.Write) == 0))
556
if ((mode == FileMode.OpenOrCreate) && ((access &
FileAccess
.Write) == 0))
System.Runtime.Remoting (1)
metadata\metadata.cs (1)
153
FileStream fs = new FileStream(stfilename, FileMode.Create,
FileAccess
.ReadWrite);
System.Web (26)
Compilation\AssemblyBuilder.cs (3)
241
Stream temp = new FileStream(generatedFilePath, FileMode.Create,
FileAccess
.Write, FileShare.Read);
667
using (Stream stream = new FileStream(physicalPath, FileMode.Open,
FileAccess
.Read, FileShare.Read)) {
1298
Stream temp = new FileStream(generatedCodeFile, FileMode.Create,
FileAccess
.Write, FileShare.Read);
Configuration\BrowserCapabilitiesCodeGenerator.cs (2)
845
using (FileStream pktStream = new FileStream(filename, FileMode.Create,
FileAccess
.Write)) {
863
using (FileStream pktStream = new FileStream(filename, FileMode.Open,
FileAccess
.Read)) {
Configuration\RemoteWebConfigurationHostServer.cs (1)
108
tempFileStream = new FileStream(tempFile, FileMode.CreateNew,
FileAccess
.Write, FileShare.ReadWrite, data.Length, FileOptions.WriteThrough);
Configuration\StrongNameUtility.cs (1)
50
using (FileStream snkStream = new FileStream(filename, FileMode.Create,
FileAccess
.Write)) {
Hosting\ApplicationManager.cs (1)
1457
FileStream file = new FileStream(configFile, FileMode.Open,
FileAccess
.Read);
Hosting\IIS7WorkerRequest.cs (2)
1048
FileAccess
.Read,
1079
FileAccess
.Read,
Hosting\ISAPIWorkerRequest.cs (3)
1385
f = new FileStream(filename, FileMode.Open,
FileAccess
.Read, FileShare.Read);
1421
f = new FileStream(filename, FileMode.Open,
FileAccess
.Read, FileShare.Read);
1440
f = new FileStream(new Microsoft.Win32.SafeHandles.SafeFileHandle(handle,false),
FileAccess
.Read);
Hosting\MapPathBasedVirtualPathProvider.cs (1)
189
return new FileStream(_physicalPath, FileMode.Open,
FileAccess
.Read, FileShare.Read);
HttpInputStream.cs (1)
236
_filestream = new FileStream(_filename, FileMode.Create,
FileAccess
.ReadWrite, FileShare.None, 4096, FileOptions.DeleteOnClose);
HttpResponse.cs (5)
2769
f = new FileStream(filename, FileMode.Open,
FileAccess
.Read, FileShare.Read);
2816
using (FileStream f = new FileStream(filename, FileMode.Open,
FileAccess
.Read, FileShare.Read)) {
2847
f = new FileStream(filename, FileMode.Open,
FileAccess
.Read, FileShare.Read);
2895
f = new FileStream(filename, FileMode.Open,
FileAccess
.Read, FileShare.Read);
2924
f = new FileStream(new Microsoft.Win32.SafeHandles.SafeFileHandle(fileHandle,false),
FileAccess
.Read);
HttpRuntime.cs (2)
1254
using (FileStream fs = new FileStream(appOfflineFile, FileMode.Open,
FileAccess
.Read, FileShare.Read)) {
3243
FileStream file = new FileStream(configFile, FileMode.Open,
FileAccess
.Read);
HttpWriter.cs (1)
470
f = new FileStream(_filename, FileMode.Open,
FileAccess
.Read, FileShare.Read);
UI\Control.cs (2)
2200
return new FileStream(physicalPath, FileMode.Open,
FileAccess
.Read, FileShare.Read);
2225
stream = new FileStream(physicalPath, FileMode.Open,
FileAccess
.Read, FileShare.Read);
Util\SmtpMail.cs (1)
613
File.Open(_filename, FileMode.Open,
FileAccess
.Read, FileShare.Read).Close();
System.Web.DataVisualization (1)
WebForm\General\ChartHttpHandler.cs (1)
213
_controllerFileStream = new System.IO.FileStream(controllerFileName, FileMode.OpenOrCreate,
FileAccess
.ReadWrite, FileShare.ReadWrite);
System.Web.Extensions (1)
ClientServices\Providers\ClientData.cs (1)
228
using (FileStream fs = new FileStream(fileName, FileMode.Open,
FileAccess
.Read)) {
System.Web.Services (1)
System\Web\Services\Discovery\DiscoveryRequestHandler.cs (1)
54
stream = new FileStream(physicalPath, FileMode.Open,
FileAccess
.Read);
System.Windows.Forms (8)
winforms\Managed\System\Resources\ResXFileRef.cs (1)
307
using (FileStream s = new FileStream(fileName, FileMode.Open,
FileAccess
.Read, FileShare.Read)) {
winforms\Managed\System\Resources\ResXResourceReader.cs (1)
286
stream = new FileStream(fileName, FileMode.Open,
FileAccess
.Read, FileShare.Read);
winforms\Managed\System\WinForms\Cursor.cs (1)
123
FileStream f = new FileStream(fileName, FileMode.Open,
FileAccess
.Read, FileShare.Read);
winforms\Managed\System\WinForms\OpenFileDialog.cs (1)
161
s = new FileStream(filename, FileMode.Open,
FileAccess
.Read, FileShare.Read);
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
5333
FileStream fs = new FileStream(fullFileName, FileMode.Create,
FileAccess
.Write);
5369
FileStream fs = new FileStream(fullFileName, FileMode.Open,
FileAccess
.Read);
winforms\Managed\System\WinForms\RichTextBox.cs (1)
2417
Stream file = new FileStream(path, FileMode.Open,
FileAccess
.Read, FileShare.Read);
winforms\Managed\System\WinForms\SaveFileDialog.cs (1)
113
s = new FileStream(filename, FileMode.Create,
FileAccess
.ReadWrite);
System.Workflow.ComponentModel (2)
AuthoringOM\Compiler\CompileXomlTask.cs (1)
630
using (StreamWriter fileStream = new StreamWriter(new FileStream(tempFile, FileMode.Create,
FileAccess
.Write), Encoding.UTF8))
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
708
Stream temp = new FileStream(filenames[i], FileMode.Create,
FileAccess
.Write, FileShare.Read);
System.WorkflowServices (2)
System\Workflow\Runtime\StreamedWorkflowDefinitionContext.cs (2)
58
workflowDefStream = new FileStream(workflowDefinitionPath, FileMode.Open,
FileAccess
.Read);
62
ruleDefStream = new FileStream(ruleDefinitionPath, FileMode.Open,
FileAccess
.Read);
System.Xml (5)
System\Xml\Core\XmlTextWriter.cs (1)
279
FileAccess
.Write, FileShare.Read), encoding) {
System\Xml\Core\XmlWriterSettings.cs (1)
454
fs = new FileStream(outputFileName, FileMode.Create,
FileAccess
.Write, FileShare.Read, 0x1000, useAsync);
System\Xml\XmlDownloadManager.cs (1)
30
return new FileStream( uri.LocalPath, FileMode.Open,
FileAccess
.Read, FileShare.Read, 1 );
System\Xml\XmlDownloadManagerAsync.cs (1)
23
return Task.Run<Stream>(() => { return new FileStream(uri.LocalPath, FileMode.Open,
FileAccess
.Read, FileShare.Read, 1, true); });
System\Xml\Xslt\XslTransform.cs (1)
239
fs = new FileStream(outputfile, FileMode.Create,
FileAccess
.ReadWrite);
WindowsBase (194)
Base\MS\Internal\IO\Packaging\Certificate.cs (1)
134
using (Stream s = _part.GetStream(FileMode.Create,
FileAccess
.Write))
Base\MS\Internal\IO\Packaging\CompoundFile\CFStream.cs (10)
45
return (!StreamDisposed && (
FileAccess
.Read == (access &
FileAccess
.Read) ||
46
FileAccess
.ReadWrite == (access &
FileAccess
.ReadWrite)));
69
return (!StreamDisposed && (
FileAccess
.Write == (access &
FileAccess
.Write) ||
70
FileAccess
.ReadWrite == (access &
FileAccess
.ReadWrite)));
314
FileAccess
openAccess,
360
FileAccess
access;
Base\MS\Internal\IO\Packaging\CompoundFile\NativeCompoundFileAPIs.cs (12)
61
internal static void UpdateModeFlagFromFileAccess(
FileAccess
access, ref int grfMode )
66
if(
FileAccess
.Write == access )
72
if( (
FileAccess
.ReadWrite == (access &
FileAccess
.ReadWrite) ) ||
73
( (
FileAccess
.Read |
FileAccess
.Write) == (access & (
FileAccess
.Read |
FileAccess
.Write))) )
77
else if(
FileAccess
.Write == (access &
FileAccess
.Write) )
81
else if(
FileAccess
.Read != (access &
FileAccess
.Read))
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (2)
824
using (Stream stream = si.GetStream(FileMode.Open,
FileAccess
.Read))
877
using (Stream stream = si.GetStream(FileMode.Open,
FileAccess
.Read))
Base\MS\Internal\IO\Packaging\CompoundFile\UserUseLicenseDictionaryLoader.cs (1)
132
using (Stream stream = si.GetStream(FileMode.Open,
FileAccess
.Read))
Base\MS\Internal\IO\Packaging\InterleavedZipPartStream.cs (2)
59
internal InterleavedZipPartStream(ZipPackagePart owningPart, FileMode mode,
FileAccess
access)
71
FileMode mode,
FileAccess
access)
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (5)
248
if (package.FileOpenAccess !=
FileAccess
.Write && package.PartExists(_uri))
286
Debug.Assert(_package.FileOpenAccess ==
FileAccess
.Read || _package.FileOpenAccess ==
FileAccess
.ReadWrite,
289
using (Stream s = part.GetStream(FileMode.Open,
FileAccess
.Read))
781
FileMode.CreateNew,
FileAccess
.Write);
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (6)
506
if (_package.FileOpenAccess ==
FileAccess
.Write)
564
Stream stream = part.GetStream(FileMode.Open,
FileAccess
.Read);
772
writerStream = _propertyPart.GetStream(FileMode.Create,
FileAccess
.Write);
774
writerStream = new IgnoreFlushAndCloseStream(_propertyPart.GetStream(FileMode.Create,
FileAccess
.Write));
794
if (_package.FileOpenAccess ==
FileAccess
.Read || _package.FileOpenAccess ==
FileAccess
.ReadWrite)
Base\MS\Internal\IO\Packaging\PieceDirectory.cs (2)
163
internal PieceDirectory(List<PieceInfo> sortedPieceInfoList, FileMode mode,
FileAccess
access)
537
private
FileAccess
_fileAccess;
Base\MS\Internal\IO\Packaging\streamingZipPartStream.cs (3)
54
FileAccess
access)
58
&& access ==
FileAccess
.Write) )
355
private
FileAccess
_access;
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (2)
189
s = part.GetStream(FileMode.Open,
FileAccess
.Read);
999
using (Stream s = SignaturePart.GetStream(FileMode.Create,
FileAccess
.Write))
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (1)
786
using (Stream s = part.GetStream(FileMode.Open,
FileAccess
.Read))
Base\MS\Internal\IO\Zip\ZipArchive.cs (35)
71
internal static ZipArchive OpenOnFile(string path, FileMode mode,
FileAccess
access, FileShare share, bool streaming)
126
internal static ZipArchive OpenOnStream(Stream stream, FileMode mode,
FileAccess
access, bool streaming)
178
if (_openAccess ==
FileAccess
.Read)
226
if (_openAccess ==
FileAccess
.Write)
291
if (_openAccess ==
FileAccess
.Read)
323
if (_openAccess ==
FileAccess
.Write)
398
internal
FileAccess
OpenAccess
451
private ZipArchive(Stream archiveStream, FileMode mode,
FileAccess
access, bool streaming, bool ownStream)
500
if (_openAccess ==
FileAccess
.ReadWrite || _openAccess ==
FileAccess
.Write)
524
static private void ValidateModeAccessShareStreaming(Stream stream, FileMode mode,
FileAccess
access, FileShare share, bool streaming)
569
static private void ValidateModeAccessStreamStreamingCombinations(Stream stream,
FileAccess
access, bool streaming)
574
if ((access==
FileAccess
.Read || access ==
FileAccess
.ReadWrite) && !stream.CanRead)
580
if ((access ==
FileAccess
.Write || access ==
FileAccess
.ReadWrite) && !stream.CanWrite)
609
static private void ValidateModeAccessShareValidEnums(FileMode mode,
FileAccess
access, FileShare share)
619
else 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},
676
{(int)FileMode.Create, (int)
FileAccess
.ReadWrite, (int)FileShare.None, 0},
677
{(int)FileMode.CreateNew, (int)
FileAccess
.Write, (int)FileShare.None, 1},
678
{(int)FileMode.CreateNew, (int)
FileAccess
.Write, (int)FileShare.Read, 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},
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},
687
{(int)FileMode.OpenOrCreate, (int)
FileAccess
.ReadWrite, (int)FileShare.None, 0}
693
private
FileAccess
_openAccess;
Base\MS\Internal\IO\Zip\ZipFileInfo.cs (1)
53
internal Stream GetStream(FileMode mode,
FileAccess
access)
Base\MS\Internal\IO\Zip\ZipIOLocalFileBlock.cs (5)
436
internal Stream GetStream(FileMode mode,
FileAccess
access)
822
static private void CheckFileAccessParameter(Stream stream,
FileAccess
access)
826
case
FileAccess
.Read:
832
case
FileAccess
.Write:
838
case
FileAccess
.ReadWrite:
Base\MS\Internal\IO\Zip\ZipIOModeEnforcingStream.cs (8)
55
((_access ==
FileAccess
.Read) || (_access ==
FileAccess
.ReadWrite)));
73
((_access ==
FileAccess
.Write) || (_access ==
FileAccess
.ReadWrite)));
265
if (_access ==
FileAccess
.ReadWrite || _access ==
FileAccess
.Write)
296
internal ZipIOModeEnforcingStream(Stream baseStream,
FileAccess
access,
322
private
FileAccess
_access;
Base\System\IO\Packaging\CompoundFile\DataSpaceManager.cs (3)
546
if (
FileAccess
.Read != _associatedStorage.OpenAccess && DirtyFlag)
832
if (_associatedStorage.OpenAccess ==
FileAccess
.Read)
1379
if (_associatedStorage.OpenAccess ==
FileAccess
.Read)
Base\System\IO\Packaging\CompoundFile\StorageInfo.cs (1)
794
if(
FileAccess
.Read == Root.OpenAccess )
Base\System\IO\Packaging\CompoundFile\StorageRoot.cs (8)
42
const
FileAccess
defaultFileAccess =
FileAccess
.ReadWrite;
87
internal
FileAccess
OpenAccess
94
return
FileAccess
.Read;
98
return
FileAccess
.ReadWrite;
224
FileAccess
access )
238
FileAccess
access,
253
FileAccess
access,
Base\System\IO\Packaging\CompoundFile\StreamInfo.cs (15)
117
private
FileAccess
openFileAccess;
260
public Stream GetStream( FileMode mode,
FileAccess
access )
273
if (parentStorage.Root.OpenAccess ==
FileAccess
.ReadWrite)
276
access =
FileAccess
.ReadWrite;
342
if(
FileAccess
.Read != parentStorage.Root.OpenAccess &&
343
FileAccess
.Read != openFileAccess )
443
private Stream Create( FileMode mode,
FileAccess
access )
455
internal Stream Create( FileMode mode,
FileAccess
access, string dataSpace )
486
if (parentStorage.Root.OpenAccess ==
FileAccess
.ReadWrite)
488
access =
FileAccess
.ReadWrite;
566
FileAccess
access,
589
void CreateTimeReadOnlyCheck(
FileAccess
access )
592
if(
FileAccess
.Read == parentStorage.Root.OpenAccess )
597
if( access ==
FileAccess
.Read )
746
private Stream CFStreamOfClone(
FileAccess
access )
Base\System\IO\Packaging\EncryptedPackage.cs (13)
117
if (_root.OpenAccess !=
FileAccess
.ReadWrite)
213
if (_root.OpenAccess !=
FileAccess
.ReadWrite)
239
FileAccess
access,
432
FileAccess
access
455
FileAccess
access,
515
root = StorageRoot.Open(fileName, FileMode.Open,
FileAccess
.Read, FileShare.Read);
704
public
FileAccess
FileOpenAccess
739
FileAccess
fileAccessForPackage = 0 ;
743
fileAccessForPackage |=
FileAccess
.Read;
746
fileAccessForPackage |=
FileAccess
.Write;
1171
_package = Package.Open(_packageStream, FileMode.Create,
FileAccess
.ReadWrite);
1228
private const
FileAccess
_defaultFileAccess =
FileAccess
.ReadWrite;
Base\System\IO\Packaging\Package.cs (38)
54
protected Package(
FileAccess
openFileAccess)
67
protected Package(
FileAccess
openFileAccess, bool streaming)
77
_inStreamingCreation = (openFileAccess ==
FileAccess
.Write && streaming);
96
public
FileAccess
FileOpenAccess
178
public static Package Open(string path, FileMode packageMode,
FileAccess
packageAccess)
204
public static Package Open(string path, FileMode packageMode,
FileAccess
packageAccess, FileShare packageShare)
261
public static Package Open(Stream stream, FileMode packageMode,
FileAccess
packageAccess)
919
if (_openFileAccess ==
FileAccess
.Read)
926
if (_openFileAccess ==
FileAccess
.Write)
940
internal static void ThrowIfFileAccessInvalid(
FileAccess
access)
943
if (access <
FileAccess
.Read || access >
FileAccess
.ReadWrite)
974
FileAccess
packageAccess,
1013
if (package.FileOpenAccess ==
FileAccess
.ReadWrite || package.FileOpenAccess ==
FileAccess
.Read)
1050
internal static Package Open(Stream stream, FileMode packageMode,
FileAccess
packageAccess, bool streaming)
1079
if (package.FileOpenAccess ==
FileAccess
.ReadWrite || package.FileOpenAccess ==
FileAccess
.Read)
1201
FileAccess
packageAccess,
1209
if (packageAccess !=
FileAccess
.Write)
1225
private static Stream ValidateModeAndAccess(Stream s, FileMode mode,
FileAccess
access)
1232
if (!s.CanWrite && (access ==
FileAccess
.ReadWrite || access ==
FileAccess
.Write))
1237
if (!s.CanRead && (access ==
FileAccess
.ReadWrite || access ==
FileAccess
.Read))
1242
if ((s.CanRead && s.CanWrite) && (access ==
FileAccess
.Read || access ==
FileAccess
.Write))
1277
if (_relationships != null && _openFileAccess !=
FileAccess
.Read)
1456
private static readonly
FileAccess
_defaultFileAccess =
FileAccess
.ReadWrite;
1460
private static readonly
FileAccess
_defaultStreamAccess =
FileAccess
.Read;
1463
private
FileAccess
_openFileAccess;
1497
internal RestrictedStream(Stream stream,
FileAccess
access)
1504
Debug.Assert(access==
FileAccess
.Read || access ==
FileAccess
.Write,
1509
if (access ==
FileAccess
.Read)
1515
if (access ==
FileAccess
.Write)
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (1)
1373
return (_container.FileOpenAccess ==
FileAccess
.Read);
Base\System\IO\Packaging\PackagePart.cs (9)
353
public Stream GetStream(FileMode mode,
FileAccess
access)
392
protected abstract Stream GetStreamCore(FileMode mode,
FileAccess
access);
732
if (_relationships != null && _container.FileOpenAccess !=
FileAccess
.Read)
803
private void ThrowIfOpenAccessModesAreIncompatible(FileMode mode,
FileAccess
access)
809
if(access ==
FileAccess
.Read &&
814
if((_container.FileOpenAccess ==
FileAccess
.Read && access !=
FileAccess
.Read) ||
815
(_container.FileOpenAccess ==
FileAccess
.Write && access !=
FileAccess
.Write) )
Base\System\IO\Packaging\ZipPackage.cs (7)
401
internal ZipPackage(string path, FileMode mode,
FileAccess
access, FileShare share, bool streaming)
437
internal ZipPackage(Stream s, FileMode mode,
FileAccess
access, bool streaming)
888
if(_zipArchive.OpenAccess ==
FileAccess
.Read || _zipArchive.OpenAccess ==
FileAccess
.ReadWrite)
1303
return _contentTypeFileInfo.GetStream(FileMode.Open,
FileAccess
.Read);
1315
pieces, FileMode.Open,
FileAccess
.Read);
1497
FileMode.Create,
FileAccess
.Write);
Base\System\IO\Packaging\ZipPackagePart.cs (1)
57
protected override Stream GetStreamCore(FileMode mode,
FileAccess
access)
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (2)
597
string path, FileMode mode,
FileAccess
access,
739
fileName, FileMode.Create,
FileAccess
.ReadWrite, FileShare.None,