SecurityManager.ResolvePolicyGroups(Evidence) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
现已弃用此 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
的策略层次结构的所有适用级别返回代码组。