CommonObjectSecurity.GetAuditRules(Boolean, Boolean, Type) CommonObjectSecurity.GetAuditRules(Boolean, Boolean, Type) CommonObjectSecurity.GetAuditRules(Boolean, Boolean, Type) CommonObjectSecurity.GetAuditRules(Boolean, Boolean, Type) Method

定義

取得與指定之安全識別項相關聯的稽核規則集合。Gets a collection of the audit rules associated with the specified security identifier.

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 Boolean Boolean Boolean

true 表示包括為物件明確設定的稽核規則。true to include audit rules explicitly set for the object.

includeInherited
Boolean Boolean Boolean Boolean

true 表示包括繼承的稽核規則。true to include inherited audit rules.

targetType
Type Type Type Type

要擷取稽核規則的安全識別項。The security identifier for which to retrieve audit rules. 這必須是可轉型為 SecurityIdentifier 物件的物件。This must be an object that can be cast as a SecurityIdentifier object.

傳回

與指定之 SecurityIdentifier 物件相關聯的稽核規則集合。The collection of audit rules associated with the specified SecurityIdentifier object.

適用於