System.Security.Policy.FileCodeGroup.Resolve Method

Resolves policy for the code group and its descendants for a set of evidence.

Syntax

public override PolicyStatement Resolve (Evidence evidence)

Parameters

evidence
The evidence for the assembly.

Returns

A policy statement consisting of the permissions granted by the code group with optional attributes, or null if the code group does not apply (the membership condition does not match the specified evidence).

Remarks

Given evidence for an assembly to be loaded, this method evaluates the code group by first checking the membership condition against the specified evidence. If there is a match, this method returns a policy statement for the code group, including evaluation of child code groups.

The .NET Framework security system uses FileCodeGroup.Resolve(Evidence) on the policy levels to determine which permissions to grant to loaded code from the resulting policy statements and the code request on the assembly.

System.Security.Policy.FileCodeGroup uses union semantics and forms a permission set based on the System.Security.Policy.Url specified by evidence.

Requirements

Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0