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ůkaz, proti kterému se zásada vyhodnocuje.

Návraty

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 rozhraní .NET Framework 4. Pokud chcete povolit zásady CAS pro kompatibilitu se staršími verzemi rozhraní .NET Framework, použijte element <legacyCasPolicy> element.

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 budou vráceny ze všech použitelných úrovní hierarchie zásad odpovídající parametru evidence .

Platí pro