This method follows the same policy evaluation as ResolvePolicy, but instead of returning granted and denied permissions it returns a collection of the code groups that matched the evidence provided, which can be useful in analyzing how a given policy configuration works with specific kinds of evidence.
[Visual Basic] Public Shared Function ResolvePolicyGroups( _ ByVal evidence As Evidence _ ) As IEnumerator [C#] public static IEnumerator ResolvePolicyGroups( Evidence evidence ); [C++] public: static IEnumerator* ResolvePolicyGroups( Evidence* evidence ); [JScript] public static function ResolvePolicyGroups( evidence : Evidence ) : IEnumerator;
Returns an TBD enumeration of the set of code groups matching the evidence, or the single code group matched that was exclusive.
Exception Type | Condition |
---|---|
PolicyException | if more than one matching code group is marked exclusive. |
Code groups will be returned from all applicable levels of the policy hierarchy that match the evidence. If one of the matching code groups is marked exclusive it is the only code group returned.
SecurityManager Class | SecurityManager Members | System.Security Namespace