MemoryMappedFileStatic: CreateOrOpen |
Creates or opens a memory-mapped file that has the specified capacity and access type in system memory.
Public Function CreateOrOpen( ByRef MapName As String, ByVal Capacity As Currency, Optional ByVal Access As MemoryMappedFileAccess = MemoryMappedFileAccess. ReadWrite ) As MemoryMappedFile
Default: MemoryMappedFileAccess . ReadWrite
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.
Exception | Condition |
---|---|
ArgumentException | MapName is an empty string. |
ArgumentNullException | MapName is vbNullString. |
ArgumentOutOfRangeException |
Capacity is greater than the size of the logical address space. -or- Capacity is less than or equal to zero. -or- Access is not a valid MemoryMappedFileAccess enumeration value. |