DirectoryObjectSecurity.GetAccessRules(Boolean, Boolean, Type) Metod

Definition

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

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

Parametrar

includeExplicit
Boolean

true för att inkludera åtkomstregler som uttryckligen angetts för objektet.

includeInherited
Boolean

true för att inkludera ärvda åtkomstregler.

targetType
Type

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

Returer

Samlingen med åtkomstregler som är associerade med det angivna SecurityIdentifier objektet.

Gäller för