SecurityManager.ResolvePolicyGroups(Evidence) Metoda

Definice

Upozornění

Toto rozhraní API je teď zastaralé.

Upozornění

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.

Získá kolekci skupin kódu odpovídajících zadaným důkazům.

public:
 static System::Collections::IEnumerator ^ ResolvePolicyGroups(System::Security::Policy::Evidence ^ evidence);
[System.Obsolete]
public static System.Collections.IEnumerator ResolvePolicyGroups (System.Security.Policy.Evidence evidence);
public static System.Collections.IEnumerator ResolvePolicyGroups (System.Security.Policy.Evidence evidence);
[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 ResolvePolicyGroups (System.Security.Policy.Evidence evidence);
[<System.Obsolete>]
static member ResolvePolicyGroups : System.Security.Policy.Evidence -> System.Collections.IEnumerator
static member ResolvePolicyGroups : System.Security.Policy.Evidence -> 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 ResolvePolicyGroups : System.Security.Policy.Evidence -> System.Collections.IEnumerator
Public Shared Function ResolvePolicyGroups (evidence As Evidence) As IEnumerator

Parametry

evidence
Evidence

Důkazy, proti kterým se zásada vyhodnotí.

Návraty

IEnumerator

Výčet sady skupin kódu odpovídajících důkazům

Atributy

Výjimky

Tato metoda používá zásady zabezpečení přístupu kódu (CAS), které jsou zastaralé v .NET Framework 4. Pokud chcete povolit zásady CAS pro kompatibilitu se staršími verzemi .NET Framework, použijte <element legacyCasPolicy>.

Poznámky

Tato metoda je užitečná při analýze toho, jak zadaná konfigurace zásad funguje s konkrétními druhy důkazů.

Skupiny kódu se vrátí ze všech příslušných úrovní hierarchie zásad odpovídajících parametru evidence .

Platí pro