MemoryMappedFile::CreateFromFile Method (String^, FileMode)
Creates a memory-mapped file that has the specified access mode from a file on disk.
Assembly: System.Core (in System.Core.dll)
The path to file to map.
Return ValueType: System.IO.MemoryMappedFiles::MemoryMappedFile^
A memory-mapped file that has the specified access mode.
path is null.
path exceeds the maximum length defined by the operating system. In Windows, paths must contain fewer than 248 characters, and file names must contain fewer than 260 characters.
The caller does not have the required permissions for the file.
The mode parameter pertains to the source file on disk. You can use only the Open enumeration value to create the memory-mapped file from the source file on disk.
Available since 4.0