CryptoKeySecurity.AuditRuleFactory 方法

定义

用指定的值初始化 AuditRule 类的新实例。

public:
 override System::Security::AccessControl::AuditRule ^ AuditRuleFactory(System::Security::Principal::IdentityReference ^ identityReference, int accessMask, bool isInherited, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags, System::Security::AccessControl::AuditFlags flags);
public override sealed System.Security.AccessControl.AuditRule AuditRuleFactory (System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags flags);
override this.AuditRuleFactory : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AuditFlags -> System.Security.AccessControl.AuditRule
Public Overrides NotOverridable Function AuditRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, flags As AuditFlags) As AuditRule

参数

identityReference
IdentityReference

审核规则应用到其中的标识。 它必须是可强制转换为 SecurityIdentifier 的对象。

accessMask
Int32

此规则的访问掩码。 访问掩码是 32 位的匿名位集合,其含义由单个集成者定义。

isInherited
Boolean

如果此规则继承自父容器,则为 true

inheritanceFlags
InheritanceFlags

指定审核规则的继承属性。

propagationFlags
PropagationFlags

指定审核规则是否自动传播。 如果将 inheritanceFlags 设置为 None,则忽略传播标志。

flags
AuditFlags

指定对其审核规则的条件。

返回

此方法创建的 AuditRule 对象。

适用于