MemoryMappedFileStatic: OpenExisting |
Opens an existing memory-mapped file that has the specified name in system memory.
Public Function OpenExisting( ByRef MapName As String, Optional ByVal DesiredAccessRights As MemoryMappedFileRights = MemoryMappedFileRights. ReadWrite ) As MemoryMappedFile
Default: MemoryMappedFileRights . ReadWrite
The memory-mapped file can be either a persisted memory-mapped file (associated with a file on disk) or non persisted.
Exception | Condition |
---|---|
ArgumentException | MapName is an empty string. |
ArgumentNullException | MapName is vbNullString. |
ArgumentOutOfRangeException | DesiredAccessRights is not a valid MemoryMappedFileRights enumeration value. |
FileNotFoundException | The file specified for MapName does not exist. |