Creates or opens a memory-mapped file that has the specified capacity and access type in system memory.
- mapName
- A name to assign to the memory-mapped file.
- capacity
- The maximum size, in bytes, to allocate to the memory-mapped file.
- access
- One of the enumeration values that specifies the type of access allowed to the memory-mapped file. The default is MemoryMappedFileAccess.ReadWrite.
A memory-mapped file that has the specified characteristics.
Use this method to create or open a memory-mapped file that is not persisted (that is, not associated with a file on disk), which you can use to share data between processes.