System.Security.SecurityManager.ResolvePolicy Method

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

Syntax

[System.Obsolete]
public static PermissionSet ResolvePolicy (System.Security.Policy.Evidence[] evidences)

Parameters

evidences
An array of evidence objects used to evaluate policy.

Returns

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

Remarks

This method invokes the security policy engine, providing it with an array of System.Security.Policy.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 System.Security.Policy.Evidence objects in the array.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0