.NET Framework Class Library
MemoryMappedFileSecurity Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

Visual Basic (Declaration)
Public Class MemoryMappedFileSecurity _
    Inherits ObjectSecurity(Of MemoryMappedFileRights)
Visual Basic (Usage)
Dim instance As MemoryMappedFileSecurity
C#
public class MemoryMappedFileSecurity : ObjectSecurity<MemoryMappedFileRights>
Visual C++
public ref class MemoryMappedFileSecurity : public ObjectSecurity<MemoryMappedFileRights>
F#
type MemoryMappedFileSecurity =  
    class
        inherit ObjectSecurity<MemoryMappedFileRights>
    end
Remarks

The 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 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 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 SetAccessControl method. To retrieve access or audit rules from an existing file, use the GetAccessControl method.

The following MemoryMappedFile methods take a MemoryMappedFileSecurity object as a parameter:

Inheritance Hierarchy

System..::.Object
  System.Security.AccessControl..::.ObjectSecurity
    System.Security.AccessControl..::.CommonObjectSecurity
      System.Security.AccessControl..::.NativeObjectSecurity
        System.Security.AccessControl..::.ObjectSecurity<(Of <(MemoryMappedFileRights>)>)
          System.IO.MemoryMappedFiles..::.MemoryMappedFileSecurity
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4
See Also

Reference

Page view tracker