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