[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)
Visual Basic (Declaration)
Public Class MemoryMappedFileSecurity _
Inherits ObjectSecurity(Of MemoryMappedFileRights)
Dim instance As MemoryMappedFileSecurity
public class MemoryMappedFileSecurity : ObjectSecurity<MemoryMappedFileRights>
public ref class MemoryMappedFileSecurity : public ObjectSecurity<MemoryMappedFileRights>
type MemoryMappedFileSecurity =
class
inherit ObjectSecurity<MemoryMappedFileRights>
end
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:
CreateNew(String, Int64, MemoryMappedFileAccess, MemoryMappedFileOptions, MemoryMappedFileSecurity, HandleInheritability)
CreateFromFile(FileStream, String, Int64, MemoryMappedFileAccess, MemoryMappedFileSecurity, HandleInheritability, Boolean)
SetAccessControl(MemoryMappedFileSecurity)
CreateOrOpen(String, Int64, MemoryMappedFileAccess, MemoryMappedFileOptions, MemoryMappedFileSecurity, HandleInheritability)
System..::.Object
System.Security.AccessControl..::.ObjectSecurity
System.Security.AccessControl..::.CommonObjectSecurity
System.Security.AccessControl..::.NativeObjectSecurity
System.Security.AccessControl..::.ObjectSecurity<(Of <(MemoryMappedFileRights>)>)
System.IO.MemoryMappedFiles..::.MemoryMappedFileSecurity
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
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.
.NET Framework
Supported in: 4
.NET Framework Client Profile
Supported in: 4
Reference