PipeAccessRule 类

定义

表示访问控制项 (ACE) 的抽象,该访问控制项定义了管道的访问规则。Represents an abstraction of an access control entry (ACE) that defines an access rule for a pipe.

public ref class PipeAccessRule sealed : System::Security::AccessControl::AccessRule
public sealed class PipeAccessRule : System.Security.AccessControl.AccessRule
type PipeAccessRule = class
    inherit AccessRule
Public NotInheritable Class PipeAccessRule
Inherits AccessRule
继承

注解

访问控制规则定义用户帐户权限, 以确定在运行 Microsoft Windows 的计算机上允许或禁止的操作。Access control rules define user account rights that determine which actions are allowed or disallowed on computers that are running Microsoft Windows.

PipeAccessRule类表示基础访问控制项 (ACE) 的抽象, 该访问控制项指定用户帐户、要提供的访问类型 (读取、写入等), 以及是允许还是拒绝该权限。The PipeAccessRule class represents an abstraction of an underlying access control entry (ACE) that specifies a user account, the type of access to provide (read, write, and so on), and whether to allow or deny that right. 此类还可以指定如何将访问规则传播到子对象。This class can also specify how access rules are propagated to child objects.

PipeAccessRule使用类创建新的访问规则。Use the PipeAccessRule class to create a new access rule. 您可以使用PipeSecurity类来持久保存该规则。You can persist the rule using the PipeSecurity class.

构造函数

PipeAccessRule(IdentityReference, PipeAccessRights, AccessControlType)

使用指定的标识、管道访问权限和访问控制类型来初始化 PipeAccessRule 类的一个新实例。Initializes a new instance of the PipeAccessRule class with the specified identity, pipe access rights, and access control type.

PipeAccessRule(String, PipeAccessRights, AccessControlType)

使用指定的标识、管道访问权限和访问控制类型来初始化 PipeAccessRule 类的一个新实例。Initializes a new instance of the PipeAccessRule class with the specified identity, pipe access rights, and access control type.

属性

AccessControlType

获取与此 AccessControlType 对象关联的 AccessRule 对象。Gets the AccessControlType value associated with this AccessRule object.

(继承自 AccessRule)
AccessMask

获取此规则的访问掩码。Gets the access mask for this rule.

(继承自 AuthorizationRule)
IdentityReference

获取对其应用此规则的 IdentityReferenceGets the IdentityReference to which this rule applies.

(继承自 AuthorizationRule)
InheritanceFlags

获取用于确定子对象如何继承此规则的标志的值。Gets the value of flags that determine how this rule is inherited by child objects.

(继承自 AuthorizationRule)
IsInherited

获取一个值,该值指示此规则是否为显式设置或继承自父级容器对象。Gets a value indicating whether this rule is explicitly set or is inherited from a parent container object.

(继承自 AuthorizationRule)
PipeAccessRights

获取与当前 PipeAccessRights 对象关联的 PipeAccessRule 标志。Gets the PipeAccessRights flags that are associated with the current PipeAccessRule object.

PropagationFlags

获取传播标志的值,该值确定如何将此规则的继承传播到子对象。Gets the value of the propagation flags, which determine how inheritance of this rule is propagated to child objects. 仅当 InheritanceFlags 枚举的值不为 None 时,此属性才有意义。This property is significant only when the value of the InheritanceFlags enumeration is not None.

(继承自 AuthorizationRule)

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于