Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PolicyLevel.ResolveMatchingCodeGroups Method

Resolves policy at the policy level and returns the root of a code group tree that matches the evidence.

Namespace:  System.Security.Policy
Assembly:  mscorlib (in mscorlib.dll)
public CodeGroup ResolveMatchingCodeGroups(
	Evidence evidence


Type: System.Security.Policy.Evidence

The Evidence used to resolve policy.

Return Value

Type: System.Security.Policy.CodeGroup
A CodeGroup representing the root of a tree of code groups matching the specified evidence.

The policy level contains multiple matching code groups marked as exclusive.


The evidence parameter is null.

You can use this method to analyze the effect of the code groups in a policy level with respect to a certain set of evidence. For example, if the security policy is not granting an 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 a code group that can have child code groups, it is possible for an administrator to examine the code group and its child code groups and determine which code groups match.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.