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::OpenExisting Method (String^, MemoryMappedFileRights)
.NET Framework (current version)
Opens an existing memory-mapped file that has the specified name and access rights in system memory.
Assembly: System.Core (in System.Core.dll)
public: static MemoryMappedFile^ OpenExisting( String^ mapName, MemoryMappedFileRights desiredAccessRights )
Parameters
- mapName
-
Type:
System::String^
The name of the memory-mapped file to open.
- desiredAccessRights
-
Type:
System.IO.MemoryMappedFiles::MemoryMappedFileRights
One of the enumeration values that specifies the access rights to apply to the memory-mapped file.
Return Value
Type: System.IO.MemoryMappedFiles::MemoryMappedFile^A memory-mapped file that has the specified characteristics.
| Exception | Condition |
|---|---|
| ArgumentException | mapName is an empty string. |
| ArgumentNullException | mapName is null. |
| ArgumentOutOfRangeException | desiredAccessRights is not a valid MemoryMappedFileRights enumeration value. |
| FileNotFoundException | The file specified for mapName does not exist. |
.NET Framework
Available since 4.0
Available since 4.0
Show: