SecurityManager.PolicyHierarchy Metodo

Definizione

Attenzione

Questa API è ora deprecata.

Attenzione

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.

Fornisce un enumeratore per accedere alla gerarchia dei criteri di sicurezza in base ai livelli, ad esempio criteri computer e utente.

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

Restituisce

IEnumerator

Enumeratore per gli oggetti PolicyLevel che compongono la gerarchia dei criteri di sicurezza.

Attributi

Eccezioni

Questo metodo usa criteri di sicurezza dall'accesso di codice (CAS), obsoleti nella .NET Framework 4. Per abilitare questi criteri per la compatibilità con le versioni precedenti di .NET Framework, usare l'elemento <legacyCasPolicy>.

Il codice che chiama questo metodo non ha ControlPolicy.

Commenti

L'enumeratore restituito fornisce oggetti successivi PolicyLevel che rappresentano i criteri al livello corrispondente (computer, utente, organizzazione, dominio applicazione) della gerarchia. Questi oggetti sono gli oggetti criteri attivi; la modifica di questi oggetti può avere risultati imprevedibili.

La gerarchia minima dei criteri è costituita da un livello di computer, un livello enterprise e un livello utente. Tuttavia, la gerarchia può includere livelli aggiuntivi.

Si applica a