AuthorizationRule 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定的值初始化类的新实例 AccessRule 。
protected public:
AuthorizationRule(System::Security::Principal::IdentityReference ^ identity, int accessMask, bool isInherited, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags);
protected internal AuthorizationRule(System.Security.Principal.IdentityReference identity, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags);
new System.Security.AccessControl.AuthorizationRule : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags -> System.Security.AccessControl.AuthorizationRule
Protected Friend Sub New (identity As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags)
参数
- identity
- IdentityReference
访问规则应用到的标识。 此参数必须是可以强制转换为的对象 SecurityIdentifier。
- accessMask
- Int32
此规则的访问掩码。 访问掩码是匿名位的 32 位集合,其含义由各个集成器定义。
- isInherited
- Boolean
true 从父容器继承此规则。
- inheritanceFlags
- InheritanceFlags
访问规则的继承属性。
- propagationFlags
- PropagationFlags
是否自动传播继承的访问规则。 如果 inheritanceFlags 设置为 None,则忽略传播标志。
例外
参数的值 identity 不能强制转换为 SecurityIdentifier。
参数的值 accessMask 为零,或 inheritanceFlags 参数 propagationFlags 包含无法识别的标志值。