SecurityManager.PolicyHierarchy Método

Definição

Cuidado

Esta API agora é obsoleta.

Cuidado

This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.

Fornece um enumerador para acessar a hierarquia de política de segurança por níveis, como a política de computador e a política de usuário.Provides an enumerator to access the security policy hierarchy by levels, such as computer policy and user policy.

public:
 static System::Collections::IEnumerator ^ PolicyHierarchy();
[System.Obsolete]
public static System.Collections.IEnumerator PolicyHierarchy ();
public static System.Collections.IEnumerator PolicyHierarchy ();
[System.Obsolete("This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public static System.Collections.IEnumerator PolicyHierarchy ();
[<System.Obsolete>]
static member PolicyHierarchy : unit -> System.Collections.IEnumerator
static member PolicyHierarchy : unit -> System.Collections.IEnumerator
[<System.Obsolete("This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
static member PolicyHierarchy : unit -> System.Collections.IEnumerator
Public Shared Function PolicyHierarchy () As IEnumerator

Retornos

IEnumerator

Um enumerador para objetos PolicyLevel que compõem a hierarquia de política de segurança.An enumerator for PolicyLevel objects that compose the security policy hierarchy.

Atributos

Exceções

Esse método usa a política de CAS (segurança de acesso ao código), que é obsoleta no .NET Framework 4.This method uses code access security (CAS) policy, which is obsolete in the .NET Framework 4. Para habilitar a política de CAS para compatibilidade com versões anteriores do .NET Framework, use o elemento <legacyCasPolicy>.To enable CAS policy for compatibility with earlier versions of the .NET Framework, use the <legacyCasPolicy> element.

O código que chama esse método não tem ControlPolicy.The code that calls this method does not have ControlPolicy.

Comentários

O enumerador retornado fornece objetos sucessivos PolicyLevel que representam a política no nível do respectivo (computador, usuário, empresa, domínio de aplicativo) da hierarquia.The returned enumerator provides successive PolicyLevel objects that represent the policy at the respective (machine, user, enterprise, application domain) level of the hierarchy. Esses objetos são os objetos de política dinâmica; alterar esses objetos pode ter resultados imprevisíveis.These objects are the live policy objects; altering these objects can have unpredictable results.

A hierarquia de política mínima consiste em um nível de máquina, um nível empresarial e um nível de usuário.Minimum policy hierarchy consists of a machine level, an enterprise level, and a user level. No entanto, a hierarquia pode incluir níveis adicionais.However, the hierarchy can include additional levels.

Aplica-se a