24 references to OpenOrCreate
mscorlib (7)
system\io\file.cs (1)
776
return new FileStream(path, FileMode.
OpenOrCreate
,
system\io\fileinfo.cs (1)
437
return new FileStream(FullPath, FileMode.
OpenOrCreate
,
system\io\filestream.cs (2)
782
&& mode==FileMode.
OpenOrCreate
)
821
mode = FileMode.
OpenOrCreate
;
system\io\isolatedstorage\isolatedstoragefile.cs (1)
2385
using(FileStream fs = new FileStream(path + s_IDFile, FileMode.
OpenOrCreate
)) {
system\io\isolatedstorage\isolatedstoragefilestream.cs (2)
150
case FileMode.
OpenOrCreate
: // Check for new file
194
case FileMode.
OpenOrCreate
: // Check for new file
System (1)
compmod\system\diagnostics\DefaultTraceListener.cs (1)
134
using (Stream stream = file.Open(FileMode.
OpenOrCreate
)) {
System.Core (1)
System\IO\LogStream.cs (1)
104
_modeSav = (retention != LogRetentionOption.SingleFileUnboundedSize)? FileMode.Create : FileMode.
OpenOrCreate
;
System.IO.Log (2)
System\IO\Log\LogStore.cs (2)
537
(mode == FileMode.
OpenOrCreate
)))
556
if ((mode == FileMode.
OpenOrCreate
) && ((access & FileAccess.Write) == 0))
System.Web.DataVisualization (1)
WebForm\General\ChartHttpHandler.cs (1)
213
_controllerFileStream = new System.IO.FileStream(controllerFileName, FileMode.
OpenOrCreate
, FileAccess.ReadWrite, FileShare.ReadWrite);
WindowsBase (12)
Base\MS\Internal\IO\Zip\ZipArchive.cs (4)
73
if (mode == FileMode.
OpenOrCreate
|| mode == FileMode.Open)
467
((_openMode == FileMode.
OpenOrCreate
) && archiveStream.Length == 0))
615
&& (mode != FileMode.
OpenOrCreate
) && (mode != FileMode.Truncate))
687
{(int)FileMode.
OpenOrCreate
, (int)FileAccess.ReadWrite, (int)FileShare.None, 0}
Base\MS\Internal\IO\Zip\ZipIOLocalFileBlock.cs (1)
460
case FileMode.
OpenOrCreate
:
Base\System\IO\Packaging\CompoundFile\StorageRoot.cs (2)
41
const FileMode defaultFileMode = FileMode.
OpenOrCreate
;
290
case FileMode.
OpenOrCreate
:
Base\System\IO\Packaging\CompoundFile\StreamInfo.cs (3)
89
const FileMode defaultFileOpenMode = FileMode.
OpenOrCreate
;
333
case FileMode.
OpenOrCreate
:
536
case FileMode.
OpenOrCreate
:
Base\System\IO\Packaging\Package.cs (1)
1455
private static readonly FileMode _defaultFileMode = FileMode.
OpenOrCreate
;
Base\System\IO\Packaging\PackagePart.cs (1)
310
return GetStream(FileMode.
OpenOrCreate
, _container.FileOpenAccess);