共用方式為


SecurityManager.ResolvePolicyGroups(Evidence) 方法

定義

警告

此 API 現已淘汰。

警告

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]
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

參數

evidence
Evidence

針對評估之原則設定的辨識項。

傳回

符合辨識項之程式碼群組集合的列舉。

屬性

例外狀況

此方法使用程式碼存取安全性 (CAS) 原則,在 .NET Framework 4 中已過時。 若要啟用 CAS 原則對舊版 .NET Framework 的相容性,請使用 <legacyCasPolicy> 項目

備註

這個方法在分析指定之原則組態如何與特定類型的辨識項搭配運作時很有用。

程式碼群組會從符合 evidence 參數之原則階層的所有適用層級傳回。

適用於