Share via


CommonObjectSecurity.GetAccessRules(Boolean, Boolean, Type) Metoda

Definice

Získá kolekci pravidel přístupu přidružených k zadanému identifikátoru zabezpečení.

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

Parametry

includeExplicit
Boolean

true k zahrnutí pravidel přístupu explicitně nastavených pro objekt.

includeInherited
Boolean

true a zahrnout pravidla zděděného přístupu.

targetType
Type

Určuje, zda je identifikátor zabezpečení, pro který se mají načíst pravidla přístupu, typu SecurityIdentifier nebo typu NTAccount. Hodnota tohoto parametru musí být typ, který lze přeložit na SecurityIdentifier typ.

Návraty

Kolekce pravidel přístupu přidružených k zadanému SecurityIdentifier objektu.

Platí pro