CommonObjectSecurity.GetAuditRules(Boolean, Boolean, Type) 方法

定义

获取与指定的安全性标识符关联的审核规则的集合。

public:
 System::Security::AccessControl::AuthorizationRuleCollection ^ GetAuditRules(bool includeExplicit, bool includeInherited, Type ^ targetType);
public System.Security.AccessControl.AuthorizationRuleCollection GetAuditRules (bool includeExplicit, bool includeInherited, Type targetType);
member this.GetAuditRules : bool * bool * Type -> System.Security.AccessControl.AuthorizationRuleCollection
Public Function GetAuditRules (includeExplicit As Boolean, includeInherited As Boolean, targetType As Type) As AuthorizationRuleCollection

参数

includeExplicit
Boolean

若要包括为对象显式设置的审核规则,则为 true

includeInherited
Boolean

若要包括继承的审核规则,则为 true

targetType
Type

要为其检索审核规则的安全性标识符。 这必须是可以强制转换为 SecurityIdentifier 对象的对象。

返回

AuthorizationRuleCollection

与指定的 SecurityIdentifier 对象关联的审核规则的集合。

适用于