CommonObjectSecurity.GetAccessRules(Boolean, Boolean, Type) Método

Definição

Obtém uma coleção das regras de acesso associadas ao identificador de segurança especificado.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

Parâmetros

includeExplicit
Boolean

true para incluir as regras de acesso definidas explicitamente para o objeto.true to include access rules explicitly set for the object.

includeInherited
Boolean

true para incluir as regras de acesso herdadas.true to include inherited access rules.

targetType
Type

Especifica se o identificador de segurança para o qual recuperar as regras de acesso é do tipo SecurityIdentifier ou do tipo NTAccount.Specifies whether the security identifier for which to retrieve access rules is of type SecurityIdentifier or type NTAccount. O valor desse parâmetro deve ser um tipo que possa ser convertido para o tipo SecurityIdentifier.The value of this parameter must be a type that can be translated to the SecurityIdentifier type.

Retornos

AuthorizationRuleCollection

A coleção de regras de acesso associadas ao objeto SecurityIdentifier especificado.The collection of access rules associated with the specified SecurityIdentifier object.

Aplica-se a