Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CreateFromFile Method

MemoryMappedFile.CreateFromFile Method

.NET Framework 4.6 and 4.5

Creates a memory-mapped file from an existing file.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member CreateFromFile(String) Creates a memory-mapped file from a file on disk.
Public method Static member CreateFromFile(String, FileMode) Creates a memory-mapped file that has the specified access mode from a file on disk.
Public method Static member CreateFromFile(String, FileMode, String) Creates a memory-mapped file that has the specified access mode and name from a file on disk.
Public method Static member CreateFromFile(String, FileMode, String, Int64) Creates a memory-mapped file that has the specified access mode, name, and capacity from a file on disk.
Public method Static member CreateFromFile(String, FileMode, String, Int64, MemoryMappedFileAccess) Creates a memory-mapped file that has the specified access mode, name, capacity, and access type from a file on disk.
Public method Static member CreateFromFile(FileStream, String, Int64, MemoryMappedFileAccess, HandleInheritability, Boolean) Creates a memory-mapped file from an existing file with the specified access mode, name, inheritability, and capacity.
Public method Static member CreateFromFile(FileStream, String, Int64, MemoryMappedFileAccess, MemoryMappedFileSecurity, HandleInheritability, Boolean) Creates a memory-mapped file that has the specified name, capacity, access type, security permissions, inheritability, and disposal requirement from a file on disk.
Top
Show:
© 2015 Microsoft