DirectoryObjectSecurity.GetAccessRules(Boolean, Boolean, Type) 方法

定义

获取与指定的安全性标识符关联的访问规则的集合。Gets a collection of the access rules associated with the specified security identifier.

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

参数

includeExplicit
Boolean

若要包括为对象显式设置的访问规则,则为 truetrue to include access rules explicitly set for the object.

includeInherited
Boolean

若要包括继承的访问规则,则为 truetrue to include inherited access rules.

targetType
Type

要为其检索访问规则的安全性标识符。The security identifier for which to retrieve access rules. 这必须是可以强制转换为 SecurityIdentifier 对象的对象。This must be an object that can be cast as a SecurityIdentifier object.

返回

AuthorizationRuleCollection

与指定的 SecurityIdentifier 对象关联的访问规则的集合。The collection of access rules associated with the specified SecurityIdentifier object.

适用于