Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MemoryMappedFile::CreateFromFile Method

.NET Framework (current version)
 

Creates a memory-mapped file from an existing file.

Namespace:   System.IO.MemoryMappedFiles
Assembly:  System.Core (in System.Core.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateFromFile(FileStream^, String^, Int64, MemoryMappedFileAccess, HandleInheritability, Boolean)

Creates a memory-mapped file from an existing file with the specified access mode, name, inheritability, and capacity.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromFile(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.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromFile(String^)

Creates a memory-mapped file from a file on disk.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromFile(String^, FileMode)

Creates a memory-mapped file that has the specified access mode from a file on disk.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromFile(String^, FileMode, String^)

Creates a memory-mapped file that has the specified access mode and name from a file on disk.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromFile(String^, FileMode, String^, Int64)

Creates a memory-mapped file that has the specified access mode, name, and capacity from a file on disk.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromFile(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.

Return to top
Show:
© 2017 Microsoft