CommonObjectSecurity.GetAccessRules(Boolean, Boolean, Type) Metoda

Definice

Získá kolekci přístupových pravidel 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 zahrnout pravidla přístupu explicitně nastavena pro objekt.

includeInherited
Boolean

true zahrnout zděděná pravidla 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