SecurityManager::ResolvePolicy Method (array<Evidence^>^)
Determines what permissions to grant to code based on the specified evidence.
Assembly: mscorlib (in mscorlib.dll)
public: [ObsoleteAttribute("This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")] static PermissionSet^ ResolvePolicy( array<Evidence^>^ evidences )
Parameters
- evidences
-
Type:
array<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 |
|---|---|
| NotSupportedException | 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.
Available since 2.0