239 references to FileShare
mscorlib (65)
microsoft\win32\win32native.cs (3)
970
int dwDesiredAccess, System.IO.
FileShare
dwShareMode,
994
int dwDesiredAccess, System.IO.
FileShare
dwShareMode,
1012
int dwDesiredAccess, System.IO.
FileShare
dwShareMode,
system\io\directory.cs (1)
1511
(
FileShare
) (FILE_SHARE_WRITE|FILE_SHARE_DELETE),
system\io\file.cs (12)
178
using(SafeFileHandle handle = Win32Native.UnsafeCreateFile(fullSourceFileName, FileStream.GENERIC_READ,
FileShare
.Read, null, FileMode.Open, 0, IntPtr.Zero)) {
221
return new FileStream(path, FileMode.Create, FileAccess.ReadWrite,
FileShare
.None, bufferSize);
228
FileShare
.None, bufferSize, options);
234
FileShare
.None, bufferSize, options, fileSecurity);
468
return Open(path, mode, (mode == FileMode.Append ? FileAccess.Write : FileAccess.ReadWrite),
FileShare
.None);
474
return Open(path,mode, access,
FileShare
.None);
479
public static FileStream Open(String path, FileMode mode, FileAccess access,
FileShare
share) {
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,
1457
FileStream fs = new FileStream(path, FileMode.Open, access,
FileShare
.ReadWrite, 1);
system\io\fileinfo.cs (5)
406
return Open(mode, FileAccess.ReadWrite,
FileShare
.None);
412
return Open(mode, access,
FileShare
.None);
417
public FileStream Open(FileMode mode, FileAccess access,
FileShare
share) {
430
FileShare
.Read, 4096, false);
438
FileAccess.Write,
FileShare
.None);
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) {
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)
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)
641
FileShare
tempshare = share & ~
FileShare
.Inheritable;
652
else if (tempshare <
FileShare
.None || tempshare > (
FileShare
.ReadWrite |
FileShare
.Delete))
816
share &= ~
FileShare
.Inheritable;
1079
private static Win32Native.SECURITY_ATTRIBUTES GetSecAttrs(
FileShare
share)
1082
if ((share &
FileShare
.Inheritable) != 0) {
1095
private unsafe static Win32Native.SECURITY_ATTRIBUTES GetSecAttrs(
FileShare
share, FileSecurity fileSecurity, out Object pinningHandle)
1099
if ((share &
FileShare
.Inheritable) != 0 || fileSecurity != null) {
1103
if ((share &
FileShare
.Inheritable) != 0) {
system\io\isolatedstorage\isolatedstoragefile.cs (2)
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 (10)
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)
73
FileShare
.Read:
FileShare
.None, DefaultBufferSize, null) {
82
FileShare
.Read:
FileShare
.None, DefaultBufferSize, isf) {
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\longpath.cs (1)
226
using(SafeFileHandle handle = Win32Native.UnsafeCreateFile(fullSourceFileName, FileStream.GENERIC_READ,
FileShare
.Read, null, FileMode.Open, 0, IntPtr.Zero)) {
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\reflection\assembly.cs (2)
2268
FileAccess.Read,
FileShare
.Read, FileStream.DefaultBufferSize, false);
2287
FileAccess.Read,
FileShare
.Read, FileStream.DefaultBufferSize, false);
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)
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);
PresentationBuildTasks (2)
BuildTasks\Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
64
_sourceStream = new FileStream(_sourcePath, FileMode.Open, FileAccess.Read,
FileShare
.Read);
Shared\System\Windows\Markup\ReflectionHelper.cs (1)
650
using (FileStream fileStream = File.Open(filepath, FileMode.Open, FileAccess.Read,
FileShare
.Read))
PresentationCore (5)
Core\CSharp\MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
80
_tempFileStream = File.Open(tempFileName, FileMode.Open, FileAccess.ReadWrite,
FileShare
.ReadWrite);
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);
PresentationFramework (9)
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\MS\Internal\AppModel\ResourceContainer.cs (3)
82
internal static
FileShare
FileShare
416
private static
FileShare
_fileShare =
FileShare
.Read;
src\Framework\MS\Internal\IO\Packaging\XpsFilter.cs (3)
371
FileShare
fileSharing;
406
fileSharing =
FileShare
.ReadWrite;
666
FileShare
fileSharing,
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
53
var stream = new FileStream(fileName, FileMode.Open, FileAccess.Read,
FileShare
.Read);
System (29)
compmod\microsoft\csharp\csharpcodeprovider.cs (6)
674
Stream temp = new FileStream(responseFileName, FileMode.Create, FileAccess.Write,
FileShare
.Read);
3440
string [] lines = ReadAllLines(outputFile, Encoding.UTF8,
FileShare
.ReadWrite);
3464
using (FileStream fs = new FileStream(options.OutputAssembly, FileMode.Open, FileAccess.Read,
FileShare
.Read))
3509
private static string[] ReadAllLines(String file, Encoding encoding,
FileShare
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)
2889
byte[] fileBytes = ReadAllBytes(outputFile,
FileShare
.ReadWrite);
2909
FileStream fs = new FileStream(outputAssemblyFile, FileMode.Open, FileAccess.Read,
FileShare
.Read);
2944
private static byte[] ReadAllBytes(String file,
FileShare
share)
compmod\system\codedom\compiler\CodeCompiler.cs (5)
265
Stream temp = new FileStream(filenames[i], FileMode.Create, FileAccess.Write,
FileShare
.Read);
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 (2)
57
return new FileStream(file, FileMode.CreateNew, FileAccess.Write,
FileShare
.Read |
FileShare
.Inheritable);
compmod\system\componentmodel\LicFileLicenseProvider.cs (1)
82
Stream licStream = new FileStream(licenseFile, FileMode.Open, FileAccess.Read,
FileShare
.Read);
net\System\Net\Cache\IERequestCache.cs (3)
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\filewebrequest.cs (3)
434
request.m_stream = new FileWebStream(request, request.m_uri.LocalPath, FileMode.Create, FileAccess.Write,
FileShare
.Read);
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 (1)
51
FileShare
.Read,
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\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);
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 (7)
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 (4)
170
FileShare
.ReadWrite );
278
FileShare
fileShare =
FileShare
.Read;
281
fileShare |=
FileShare
.Delete;
System.Core (10)
Microsoft\Win32\UnsafeNativeMethods.cs (3)
180
int dwDesiredAccess, System.IO.
FileShare
dwShareMode,
188
int dwDesiredAccess, System.IO.
FileShare
dwShareMode,
326
int dwDesiredAccess, System.IO.
FileShare
dwShareMode,
System\IO\LogStream.cs (6)
58
FileShare
_shareSav;
87
UnsafeNativeMethods.SECURITY_ATTRIBUTES secAttrs = GetSecAttrs(
FileShare
.Read);
101
_shareSav =
FileShare
.Read;
117
internal void _Init(String path, int fAccess,
FileShare
share, UnsafeNativeMethods.SECURITY_ATTRIBUTES secAttrs, FileIOPermissionAccess secAccess,
455
private static UnsafeNativeMethods.SECURITY_ATTRIBUTES GetSecAttrs(
FileShare
share)
458
if ((share &
FileShare
.Inheritable) != 0) {
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
148
FileStream fileStream = new FileStream(path, mode, GetFileStreamFileSystemRights(access),
FileShare
.None, 0x1000, FileOptions.None);
System.Data (11)
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 (8)
622
System.IO.
FileShare
shareAccess = System.IO.
FileShare
.None;
628
shareAccess = System.IO.
FileShare
.Delete | System.IO.
FileShare
.ReadWrite;
634
shareAccess = System.IO.
FileShare
.Delete | System.IO.
FileShare
.Read;
644
shareAccess = System.IO.
FileShare
.Delete | System.IO.
FileShare
.Read;
fx\src\data\System\Data\SQLTypes\UnsafeNativeMethods.cs (1)
37
System.IO.
FileShare
shareAccess,
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
121
System.IO.
FileShare
.None);
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
280
System.IO.
FileShare
.None);
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 (17)
System\IO\Log\FileRegion.cs (1)
80
FileShare
.ReadWrite);
System\IO\Log\LogRecordSequence.cs (3)
70
FileShare
share)
84
FileShare
share,
105
FileShare
share,
System\IO\Log\LogStore.cs (11)
53
: this(path, mode, access,
FileShare
.None)
61
FileShare
share)
74
FileShare
share,
91
share &= ~
FileShare
.Inheritable;
498
FileShare
share,
504
if ((share &
FileShare
.Inheritable) != 0 || fileSecurity != null)
509
if ((share &
FileShare
.Inheritable) != 0)
530
FileShare
share)
547
if (share <
FileShare
.None || share > (
FileShare
.ReadWrite |
FileShare
.Delete))
System\IO\Log\UnsafeNativeMethods.cs (2)
473
System.IO.
FileShare
dwShareMode,
1866
System.IO.
FileShare
dwShareMode,
System.Web (18)
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\RemoteWebConfigurationHostServer.cs (1)
108
tempFileStream = new FileStream(tempFile, FileMode.CreateNew, FileAccess.Write,
FileShare
.ReadWrite, data.Length, FileOptions.WriteThrough);
Hosting\IIS7WorkerRequest.cs (1)
1049
FileShare
.Read);
Hosting\ISAPIWorkerRequest.cs (2)
1385
f = new FileStream(filename, FileMode.Open, FileAccess.Read,
FileShare
.Read);
1421
f = new FileStream(filename, FileMode.Open, FileAccess.Read,
FileShare
.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 (4)
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);
HttpRuntime.cs (1)
1254
using (FileStream fs = new FileStream(appOfflineFile, FileMode.Open, FileAccess.Read,
FileShare
.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.Windows.Forms (5)
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\RichTextBox.cs (1)
2417
Stream file = new FileStream(path, FileMode.Open, FileAccess.Read,
FileShare
.Read);
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
708
Stream temp = new FileStream(filenames[i], FileMode.Create, FileAccess.Write,
FileShare
.Read);
System.Xml (4)
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); });
WindowsBase (51)
Base\MS\Internal\IO\Zip\ZipArchive.cs (27)
71
internal static ZipArchive OpenOnFile(string path, FileMode mode, FileAccess access,
FileShare
share, bool streaming)
130
ValidateModeAccessShareStreaming(stream, mode, access,
FileShare
.None, streaming);
524
static private void ValidateModeAccessShareStreaming(Stream stream, FileMode mode, FileAccess access,
FileShare
share, bool streaming)
592
static private void ValidateModeAccessShareSupportedEnums(FileMode mode,
FileShare
share)
602
else if (share !=
FileShare
.Read && share !=
FileShare
.None)
609
static private void ValidateModeAccessShareValidEnums(FileMode mode, FileAccess access,
FileShare
share)
623
else if ((share !=
FileShare
.Delete) && (share !=
FileShare
.Inheritable) && (share !=
FileShare
.None) &&
624
(share !=
FileShare
.Read) && (share !=
FileShare
.ReadWrite) && (share !=
FileShare
.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}
Base\System\IO\Packaging\CompoundFile\StorageRoot.cs (9)
43
const
FileShare
defaultFileShare =
FileShare
.None;
239
FileShare
share )
254
FileShare
share,
320
if( 0 != (share &
FileShare
.Inheritable) )
325
else if( share ==
FileShare
.None ) // FileShare.None is zero, using "&" to check causes unreachable code error
329
else if( share ==
FileShare
.Read )
333
else if( share ==
FileShare
.Write )
337
else if( share ==
FileShare
.ReadWrite )
Base\System\IO\Packaging\EncryptedPackage.cs (5)
240
FileShare
sharing
456
FileShare
sharing
515
root = StorageRoot.Open(fileName, FileMode.Open, FileAccess.Read,
FileShare
.Read);
1229
private const
FileShare
_defaultFileShare =
FileShare
.None;
Base\System\IO\Packaging\Package.cs (7)
204
public static Package Open(string path, FileMode packageMode, FileAccess packageAccess,
FileShare
packageShare)
975
FileShare
packageShare,
1202
Nullable<
FileShare
> packageShare,
1212
&& packageShare !=
FileShare
.Read && packageShare !=
FileShare
.None)
1457
private static readonly
FileShare
_defaultFileShare =
FileShare
.None;
Base\System\IO\Packaging\ZipPackage.cs (1)
401
internal ZipPackage(string path, FileMode mode, FileAccess access,
FileShare
share, bool streaming)
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (2)
598
FileShare
share, ReliableIsolatedStorageFileFolder folder)
739
fileName, FileMode.Create, FileAccess.ReadWrite,
FileShare
.None,