MemoryMappedFileRights MemoryMappedFileRights MemoryMappedFileRights MemoryMappedFileRights Enum

定义

指定与磁盘上的文件不相关联的内存映射文件的访问权限。Specifies access rights to a memory-mapped file that is not associated with a file on disk.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class MemoryMappedFileRights
[System.Flags]
public enum MemoryMappedFileRights
type MemoryMappedFileRights = 
Public Enum MemoryMappedFileRights
继承
MemoryMappedFileRightsMemoryMappedFileRightsMemoryMappedFileRightsMemoryMappedFileRights
属性

字段

AccessSystemSecurity AccessSystemSecurity AccessSystemSecurity AccessSystemSecurity 16777216

获取或设置文件权限的权限。The right to get or set permissions on a file.

ChangePermissions ChangePermissions ChangePermissions ChangePermissions 262144

更改与文件关联的安全和审核规则的权限。The right to change the security and audit rules associated with a file.

CopyOnWrite CopyOnWrite CopyOnWrite CopyOnWrite 1

读取和写入文件的权限,其限制条件是其他进程不会看到写入操作。The right to read and write to a file with the restriction that write operations will not be seen by other processes.

Delete Delete Delete Delete 65536

删除文件的权限。The right to delete a file.

Execute Execute Execute Execute 8

运行应用程序文件的权限。The right to run an application file.

FullControl FullControl FullControl FullControl 983055

对文件进行完全控制,以及修改访问控制和审核规则的权限。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 Read Read Read 4

以只读方式打开和复制文件的权限。The right to open and copy a file as read-only.

ReadExecute ReadExecute ReadExecute ReadExecute 12

以只读方式打开和复制文件夹或文件的权限,以及运行应用程序文件的权限。The right to open and copy a folder or file as read-only, and to run application files. 此权限包括 Read 权限和 Execute 权限。This right includes the Read right and the Execute right.

ReadPermissions ReadPermissions ReadPermissions ReadPermissions 131072

从文件中打开并复制访问和审核规则的权限。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 ReadWrite ReadWrite ReadWrite 6

打开和复制文件的权限,以及向文件添加数据或从文件中移除数据的权限。The right to open and copy a file, and the right to add data to a file or remove data from a file.

ReadWriteExecute ReadWriteExecute ReadWriteExecute ReadWriteExecute 14

打开和复制文件的权限、向文件添加数据或从文件中移除数据的权限,以及运行应用程序文件的权限。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 TakeOwnership TakeOwnership TakeOwnership 524288

更改文件所有者的权限。The right to change the owner of a file.

Write Write Write Write 2

向文件添加数据或从文件中移除数据的权限。The right to add data to a file or remove data from a file.

注解

使用MemoryMappedFile.OpenExisting方法打开现有的内存映射文件时, 可以指定访问权限。You can specify access rights when you use the MemoryMappedFile.OpenExisting method to open an existing memory-mapped file.

适用于