System.IO.MemoryMappedFiles.MemoryMappedFileRights Enumeration

Specifies access rights to a memory-mapped file that is not associated with a file on disk.

Syntax

[System.Flags]
public enum MemoryMappedFileRights

Remarks

You can specify access rights when you use the erload:System.IO.MemoryMappedFiles.MemoryMappedFile.OpenExisting method to open an existing memory-mapped file.

Members

Member NameDescription
AccessSystemSecurity

The right to get or set permissions on a file.

ChangePermissions

The right to change the security and audit rules associated with a file.

CopyOnWrite

The right to read and write to a file with the restriction that write operations will not be seen by other processes.

Delete

The right to delete a file.

Execute

The right to run an application file.

FullControl

The right to exert full control over a file, and to modify access control and audit rules. This value represents the right to do anything with a file and is the combination of all rights in this enumeration.

Read

The right to open and copy a file as read-only.

ReadExecute

The right to open and copy a folder or file as read-only, and to run application files. This right includes the MemoryMappedFileRights.Read right and the MemoryMappedFileRights.Execute right.

ReadPermissions

The right to open and copy access and audit rules from a file. This does not include the right to read data, file system attributes, or extended file system attributes.

ReadWrite

The right to open and copy a file, and the right to add data to a file or remove data from a file.

ReadWriteExecute

The right to open and copy a file, the right to add data to a file or remove data from a file, and the right to run an application file.

TakeOwnership

The right to change the owner of a file.

Write

The right to add data to a file or remove data from a file.

Requirements

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