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

定义

获取与指定的安全性标识符关联的访问规则的集合。

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

若要包括为对象显式设置的访问规则,则为 true

includeInherited
Boolean

若要包括继承的访问规则,则为 true

targetType
Type

指定要为其检索访问规则的安全标识符是 SecurityIdentifier 类型还是 NTAccount 类型。 此参数的值必须是可转换为类型的类型 SecurityIdentifier

返回

与指定的 SecurityIdentifier 对象关联的访问规则的集合。

适用于