Resolves policy at the policy level, returning a list of code groups that match the identity evidence.
[Visual Basic] Public Function ResolveMatchingCodeGroups( _ ByVal evidence As Evidence _ ) As ICodeGroup [C#] public ICodeGroup ResolveMatchingCodeGroups( Evidence evidence ); [C++] public: ICodeGroup* ResolveMatchingCodeGroups( Evidence* evidence ); [JScript] public function ResolveMatchingCodeGroups( evidence : Evidence ) : ICodeGroup;
Returns an ICodeGroup representing code groups matching evidence.
This method can be used to analyze the effect of the code groups of a policy level with respect to the certain set of evidence. For example, if policy is not granting some assembly the minimum code request permissions it needs it can be difficult to tell by examination of the code groups exactly where the problem is.
Since this method returns an array of individual code groups (instead of the summary policy statement Resolve() does) it is possible for an administrator to examine the list and see what code groups are and are not matching and resolve the problem from there.
PolicyLevel Class | PolicyLevel Members | System.Security.Policy Namespace