SecurityManager.ResolvePolicy Method (Evidence[])

Note: This API is now obsolete.

Determines what permissions to grant to code based on the specified evidence.

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

[ObsoleteAttribute("This method is obsolete and will be removed in a future release of the .NET Framework. See for more information.")]
public static PermissionSet ResolvePolicy(
	Evidence[] evidences


Type: System.Security.Policy.Evidence[]

An array of evidence objects used to evaluate policy.

Return Value

Type: System.Security.PermissionSet

The set of permissions that is appropriate for all of the provided evidence.

Exception Condition

This method uses code access security (CAS) policy, which is obsolete in the .NET Framework 4. To enable CAS policy for compatibility with earlier versions of the .NET Framework, use the <legacyCasPolicy> element.

This method invokes the security policy engine, providing it with an array of Evidence objects. The returned permission set represents only those permissions that apply to every evidence in the array. These permissions are either equivalent to, or a subset of the permissions that policy would have granted to each individual evidence. This method behaves as if you were performing an intersection on the results of resolving policy on each of the Evidence objects in the array.

.NET Framework
Available since 2.0
Return to top