PipeAccessRights 枚举

定义

定义要在创建访问和审核规则时使用的访问权限。Defines the access rights to use when you create access and audit rules.

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

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

字段

AccessSystemSecurity 16777216

指定更改系统访问控制列表 (SACL) 的权限。Specifies the right to make changes to the system access control list (SACL).

ChangePermissions 262144

指定更改与管道关联的安全性和审核规则的权限。Specifies the right to change the security and audit rules that are associated with a pipe.

CreateNewInstance 4

指定创建新管道的权限。Specifies the right to create a new pipe. 设置此权限也将设置 Synchronize 权限。Setting this right also sets the Synchronize right.

Delete 65536

指定删除管道的权限。Specifies the right to delete a pipe.

FullControl 2032031

指定对某个管道进行完全控制并修改访问控制和审核规则的权限。Specifies the right to exert full control over a pipe, and to modify access control and audit rules. 此值表示在此枚举中的所有权限的组合。This value represents the combination of all rights in this enumeration.

Read 131209

指定从管道读取的权限。Specifies the right to read from the pipe. 此权限包括 ReadAttributesReadDataReadExtendedAttributesReadPermissions 权限。This right includes the ReadAttributes, ReadData, ReadExtendedAttributes, and ReadPermissions rights.

ReadAttributes 128

指定从管道读取文件系统属性的权限。Specifies the right to read file system attributes from a pipe. 这不包括读取数据、扩展文件系统属性或访问和审核规则的权限。This does not include the right to read data, extended file system attributes, or access and audit rules.

ReadData 1

指定从管道读取数据的权限。Specifies the right to read data from the pipe. 这不包括读取文件系统属性、扩展文件系统属性或访问和审核规则的权限。This does not include the right to read file system attributes, extended file system attributes, or access and audit rules.

ReadExtendedAttributes 8

指定从管道读取扩展文件系统属性的权限。Specifies the right to read extended file system attributes from a pipe. 这不包括读取数据、文件系统属性或访问和审核规则的权限。This does not include the right to read data, file system attributes, or access and audit rules.

ReadPermissions 131072

指定从管道读取访问和审核规则的权限。Specifies the right to read access and audit rules from the pipe. 这不包括读取数据、文件系统属性或扩展文件系统属性的权限。This does not include the right to read data, file system attributes, or extended file system attributes.

ReadWrite 131483

指定从管道进行读和写的权限。Specifies the right to read and write from the pipe. 此权限包括 ReadAttributesReadDataReadExtendedAttributesReadPermissionsWriteAttributesWriteDataWriteExtendedAttributes 权限。This right includes the ReadAttributes, ReadData, ReadExtendedAttributes, ReadPermissions, WriteAttributes, WriteData, and WriteExtendedAttributes rights.

Synchronize 1048576

指定应用程序是否能够等待管道句柄,以便与 I/O 操作的完成保持同步。Specifies whether the application can wait for a pipe handle to synchronize with the completion of an I/O operation. 允许访问管道时自动设置该值,拒绝访问管道时自动排除它。This value is automatically set when allowing access to the pipe and automatically excluded when denying access to the pipe. 需要此值才能创建管道。The right to create a pipe requires this value. 请注意,如果在创建管道时未显式设置此值,则系统将自动为你设置它。Note that if you do not explicitly set this value when you create a pipe, the value will be set automatically for you.

TakeOwnership 524288

指定更改管道的所有者的权限。Specifies the right to change the owner of a pipe. 请注意:管道的所有者对该资源拥有完全访问权限。Note that owners of a pipe have full access to that resource.

Write 274

指定写入管道的权限。Specifies the right to write to the pipe. 此权限包括 WriteAttributesWriteDataWriteExtendedAttributes 权限。This right includes the WriteAttributes, WriteData, and WriteExtendedAttributes rights.

WriteAttributes 256

指定向管道写入文件系统属性的权限。Specifies the right to write file system attributes to a pipe. 这不包括写入数据或扩展文件系统属性的权限。This does not include the right to write data or extended file system attributes.

WriteData 2

指定向管道写入数据的权限。Specifies the right to write data to a pipe. 这不包括写入文件系统属性或扩展文件系统属性的权限。This does not include the right to write file system attributes or extended file system attributes.

WriteExtendedAttributes 16

指定向管道写入扩展文件系统属性的权限。Specifies the right to write extended file system attributes to a pipe. 这不包括写入文件属性或数据的权限。This does not include the right to write file attributes or data.

注解

PipeAccessRights枚举指定特定用户帐户允许哪些文件系统操作, 并为特定用户帐户审核哪些文件系统操作。The PipeAccessRights enumeration specifies which file system actions are allowed for a particular user account and which file system actions are audited for a particular user account.

使用PipeAccessRulePipeAccessRights创建访问规则时, 或使用PipeAuditRule类创建审核规则时, 请使用枚举。Use the PipeAccessRights enumeration when you create an access rule with the PipeAccessRule class or when you create an audit rule with the PipeAuditRule class.

此枚举包含多个特定的系统权限值和多个这些特定值的组合值。This enumeration contains several specific system rights values and several values that are a combination of those specific values. 使用组合值 (如 FullControl、Read 和 Write) 比单独指定每个组件值更容易。It is easier to use the combination values, such as FullControl, Read, and Write, rather than specifying each component value separately.

适用于