AccessRule<T> 类

定义

表示用户的标识、访问掩码和访问控制类型(允许或拒绝)的组合。 AccessRule`1 对象还包含有关子对象如何继承规则以及如何传播继承的信息。

generic <typename T>
 where T : value classpublic ref class AccessRule : System::Security::AccessControl::AccessRule
public class AccessRule<T> : System.Security.AccessControl.AccessRule where T : struct
type AccessRule<'T (requires 'T : struct)> = class
    inherit AccessRule
Public Class AccessRule(Of T)
Inherits AccessRule

类型参数

T

访问规则的访问权限类型。

继承

注解

) (权限 (权限是类型 T,你可以将其键入到 int 或从 int 进行类型转换。例如,可以强制转换为 FileSystemRights 访问权限类型,然后正常使用实例。 相反, AccessRule 始终采用类型 int 的访问权限。

构造函数

AccessRule<T>(IdentityReference, T, AccessControlType)

使用指定的值初始化 AccessRule’1 类的一个新实例。

AccessRule<T>(IdentityReference, T, InheritanceFlags, PropagationFlags, AccessControlType)

使用指定的值初始化 AccessRule’1 类的一个新实例。

AccessRule<T>(String, T, AccessControlType)

使用指定的值初始化 AccessRule’1 类的一个新实例。

AccessRule<T>(String, T, InheritanceFlags, PropagationFlags, AccessControlType)

使用指定的值初始化 AccessRule’1 类的一个新实例。

属性

AccessControlType

获取与此 AccessControlType 对象关联的 AccessRule 对象。

(继承自 AccessRule)
AccessMask

获取此规则的访问掩码。

(继承自 AuthorizationRule)
IdentityReference

获取对其应用此规则的 IdentityReference

(继承自 AuthorizationRule)
InheritanceFlags

获取用于确定子对象如何继承此规则的标志的值。

(继承自 AuthorizationRule)
IsInherited

获取一个值,该值指示此规则是否为显式设置或继承自父级容器对象。

(继承自 AuthorizationRule)
PropagationFlags

获取传播标志的值,该值确定如何将此规则的继承传播到子对象。 仅当 InheritanceFlags 枚举的值不为 None 时,此属性才有意义。

(继承自 AuthorizationRule)
Rights

获取当前实例的权限。

方法

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于