SecurityManager.ResolvePolicyGroups(Evidence) Metode

Definisi

Perhatian

API ini sudah tidak digunakan lagi.

Perhatian

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.

Mendapatkan kumpulan grup kode yang cocok dengan bukti yang ditentukan.

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

Parameter

evidence
Evidence

Bukti yang ditetapkan di mana kebijakan dievaluasi.

Mengembalikan

Enumerasi dari sekumpulan grup kode yang cocok dengan bukti.

Atribut

Pengecualian

Metode ini menggunakan kebijakan keamanan akses kode (CAS), yang usang dalam .NET Framework 4. Untuk mengaktifkan kebijakan CAS untuk kompatibilitas dengan versi .NET Framework yang lebih lama, gunakan elemen <legacyCasPolicy>.

Keterangan

Metode ini berguna dalam menganalisis cara kerja konfigurasi kebijakan tertentu dengan jenis bukti tertentu.

Grup kode akan dikembalikan dari semua tingkat hierarki kebijakan yang berlaku yang cocok dengan evidence parameter.

Berlaku untuk