CommonObjectSecurity.GetAuditRules(Boolean, Boolean, Type) Metod

Definition

Hämtar en samling granskningsregler som är associerade med den angivna säkerhetsidentifieraren.

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

Parametrar

includeExplicit
Boolean

true för att inkludera granskningsregler som uttryckligen angetts för objektet.

includeInherited
Boolean

true för att inkludera ärvda granskningsregler.

targetType
Type

Säkerhetsidentifieraren som granskningsregler ska hämtas för. Detta måste vara ett objekt som kan gjutas som ett SecurityIdentifier objekt.

Returer

Samlingen med granskningsregler som är associerade med det angivna SecurityIdentifier objektet.

Gäller för