This documentation is archived and is not being maintained.

SecurityManager.ResolvePolicyGroups Method

Gets a collection of code groups matching the specified evidence.

Namespace:  System.Security
Assembly:  mscorlib (in mscorlib.dll)

public static IEnumerator ResolvePolicyGroups(
	Evidence evidence


Type: System.Security.Policy.Evidence

The evidence set against which the policy is evaluated.

Return Value

Type: System.Collections.IEnumerator
An IEnumerator enumeration of the set of code groups matching the evidence.

This method is useful in analyzing how a specified policy configuration works with specific kinds of evidence.

Code groups will be returned from all applicable levels of the policy hierarchy matching the evidence parameter.

// Set the evidence.
Evidence myEvidence = new Evidence(AppDomain.CurrentDomain.Evidence);
// Get code groups from specified evidence.
IEnumerator myEnumerator = SecurityManager.ResolvePolicyGroups(myEvidence);

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0