SecurityManager.PolicyHierarchy Méthode

Définition

Attention

Cette API est à présent déconseillée.

Attention

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.

Fournit un énumérateur pour accéder à la hiérarchie des stratégies de sécurité par niveaux, tels que la stratégie d’ordinateur et la stratégie utilisateur.

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

Retours

Énumérateur pour PolicyLevel les objets qui composent la hiérarchie des stratégies de sécurité.

Attributs

Exceptions

Cette méthode utilise la stratégie de sécurité d’accès au code (CAS), qui est obsolète dans le .NET Framework 4. Pour activer la stratégie CAS pour la compatibilité avec les versions antérieures de .NET Framework, utilisez l’élément <legacyCasPolicy> élément.

Le code qui appelle cette méthode n’a ControlPolicypas .

Remarques

L’énumérateur retourné fournit des objets successifs PolicyLevel qui représentent la stratégie au niveau respectif (ordinateur, utilisateur, entreprise, domaine d’application) de la hiérarchie. Ces objets sont les objets de stratégie dynamique ; la modification de ces objets peut avoir des résultats imprévisibles.

La hiérarchie de stratégie minimale se compose d’un niveau machine, d’un niveau d’entreprise et d’un niveau utilisateur. Toutefois, la hiérarchie peut inclure des niveaux supplémentaires.

S’applique à