ResolvePolicyGroups Method

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
)
public static IEnumerator ResolvePolicyGroups (
	Evidence evidence
)
public static function ResolvePolicyGroups (
	evidence : Evidence
) : IEnumerator

Parameters

evidence

The evidence set against which the policy is evaluated.

Return Value

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);

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

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

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

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2016 Microsoft