28 references to CreateNew
mscorlib (4)
system\io\filestream.cs (2)
644
if (mode < FileMode.
CreateNew
|| mode > FileMode.Append)
673
if (mode==FileMode.Truncate || mode==FileMode.
CreateNew
|| mode==FileMode.Create || mode==FileMode.Append) {
system\io\isolatedstorage\isolatedstoragefilestream.cs (2)
148
case FileMode.
CreateNew
: // Assume new file
185
case FileMode.
CreateNew
: // Assume new file
System (3)
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)) { }
net\System\Net\mail\SmtpClient.cs (1)
407
FileStream fileStream = new FileStream(pathAndFilename, FileMode.
CreateNew
);
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.IO.Log (2)
System\IO\Log\LogStore.cs (2)
535
if (!((mode == FileMode.
CreateNew
) ||
552
if ((mode == FileMode.
CreateNew
) && ((access & FileAccess.Write) == 0))
System.Web (1)
Configuration\RemoteWebConfigurationHostServer.cs (1)
108
tempFileStream = new FileStream(tempFile, FileMode.
CreateNew
, FileAccess.Write, FileShare.ReadWrite, data.Length, FileOptions.WriteThrough);
WindowsBase (16)
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (1)
781
FileMode.
CreateNew
, FileAccess.Write);
Base\MS\Internal\IO\Packaging\streamingZipPartStream.cs (1)
57
if (!( (mode == FileMode.Create || mode == FileMode.
CreateNew
)
Base\MS\Internal\IO\Zip\ZipArchive.cs (6)
148
case FileMode.
CreateNew
:
465
if ((_openMode == FileMode.
CreateNew
) ||
614
if ((mode != FileMode.Append) && (mode != FileMode.Create) && (mode != FileMode.
CreateNew
) && (mode != FileMode.Open)
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},
Base\MS\Internal\IO\Zip\ZipIOLocalFileBlock.cs (1)
462
case FileMode.
CreateNew
:
Base\System\IO\Packaging\CompoundFile\StorageRoot.cs (1)
278
case FileMode.
CreateNew
:
Base\System\IO\Packaging\CompoundFile\StreamInfo.cs (2)
318
case FileMode.
CreateNew
:
523
case FileMode.
CreateNew
:
Base\System\IO\Packaging\Package.cs (2)
936
if (mode < FileMode.
CreateNew
|| mode > FileMode.Append)
1207
if (packageMode == FileMode.Create || packageMode == FileMode.
CreateNew
)
Base\System\IO\Packaging\PackagePart.cs (2)
692
GetStream(FileMode.
CreateNew
, _container.FileOpenAccess).Close();
810
(mode == FileMode.Create || mode == FileMode.
CreateNew
|| mode == FileMode.Truncate || mode == FileMode.Append))