Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

MemoryMappedFileRights Enumeration

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

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.IO.MemoryMappedFiles
Assembly:  System.Core (in System.Core.dll)
public enum MemoryMappedFileRights
Member nameDescription
AccessSystemSecurityThe right to get or set permissions on a file.
ChangePermissionsThe right to change the security and audit rules associated with a file.
CopyOnWriteThe right to read and write to a file with the restriction that write operations will not be seen by other processes.
DeleteThe right to delete a file.
ExecuteThe right to run an application file.
FullControlThe 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.
ReadThe right to open and copy a file as read-only.
ReadExecuteThe right to open and copy a folder or file as read-only, and to run application files. This right includes the Read right and the Execute right.
ReadPermissionsThe 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.
ReadWriteThe right to open and copy a file, and the right to add data to a file or remove data from a file.
ReadWriteExecuteThe 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.
TakeOwnershipThe right to change the owner of a file.
WriteThe right to add data to a file or remove data from a file.

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

.NET Framework

Supported in: 4.5.1, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.