System.IO.MemoryMappedFiles.MemoryMappedFileSecurity Class

Represents the permissions that can be granted for file access and operations on memory-mapped files.

See Also: MemoryMappedFileSecurity Members


public class MemoryMappedFileSecurity : System.Security.AccessControl.ObjectSecurity<MemoryMappedFileRights>


The System.IO.MemoryMappedFiles.MemoryMappedFileSecurity class specifies the access rights for a memory-mapped file and how access attempts are audited. This class represents access and audit rights as a set of rules.

The System.IO.MemoryMappedFiles.MemoryMappedFileSecurity class is an abstraction of the underlying Microsoft Windows file security system. In this system. It hides many of the details of DACLs and SACLs.

Use the System.IO.MemoryMappedFiles.MemoryMappedFileSecurity class to retrieve, add, or change the access rules that represent the DACL and SACL of a pipe.

To apply new or changed access or audit rules to a memory-mapped file, use the MemoryMappedFile.SetAccessControl(MemoryMappedFileSecurity) method. To retrieve access or audit rules from an existing file, use the MemoryMappedFile.GetAccessControl method.

The following System.IO.MemoryMappedFiles.MemoryMappedFile methods take a System.IO.MemoryMappedFiles.MemoryMappedFileSecurity object as a parameter:


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