SecurityManager.ResolvePolicy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines what permissions to grant to code.
Overloads
ResolvePolicy(Evidence) |
Obsolete.
Obsolete.
Determines what permissions to grant to code based on the specified evidence. |
ResolvePolicy(Evidence[]) |
Obsolete.
Obsolete.
Determines what permissions to grant to code based on the specified evidence. |
ResolvePolicy(Evidence, PermissionSet, PermissionSet, PermissionSet, PermissionSet) |
Obsolete.
Obsolete.
Determines what permissions to grant to code based on the specified evidence and requests. |
ResolvePolicy(Evidence)
- Source:
- SecurityManager.cs
- Source:
- SecurityManager.cs
- Source:
- SecurityManager.cs
- Source:
- SecurityManager.cs
Caution
This API is now deprecated.
Caution
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.
Determines what permissions to grant to code based on the specified evidence.
public:
static System::Security::PermissionSet ^ ResolvePolicy(System::Security::Policy::Evidence ^ evidence);
[System.Obsolete]
public static System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence evidence);
public static System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence evidence);
[System.Obsolete("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.")]
public static System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence evidence);
[<System.Obsolete>]
static member ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
static member ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
[<System.Obsolete("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 member ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
Public Shared Function ResolvePolicy (evidence As Evidence) As PermissionSet
Parameters
- evidence
- Evidence
The evidence set used to evaluate policy.
Returns
The set of permissions that can be granted by the security system.
- Attributes
Exceptions
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.
Remarks
This method invokes the security policy engine, providing it with evidence of the calling code's identity. The result is determined by the security policy.
Applies to
ResolvePolicy(Evidence[])
- Source:
- SecurityManager.cs
- Source:
- SecurityManager.cs
- Source:
- SecurityManager.cs
- Source:
- SecurityManager.cs
Caution
This API is now deprecated.
Caution
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.
Determines what permissions to grant to code based on the specified evidence.
public:
static System::Security::PermissionSet ^ ResolvePolicy(cli::array <System::Security::Policy::Evidence ^> ^ evidences);
[System.Obsolete]
public static System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence[] evidences);
public static System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence[] evidences);
[System.Obsolete("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.")]
public static System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence[] evidences);
[<System.Obsolete>]
static member ResolvePolicy : System.Security.Policy.Evidence[] -> System.Security.PermissionSet
static member ResolvePolicy : System.Security.Policy.Evidence[] -> System.Security.PermissionSet
[<System.Obsolete("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 member ResolvePolicy : System.Security.Policy.Evidence[] -> System.Security.PermissionSet
Public Shared Function ResolvePolicy (evidences As Evidence()) As PermissionSet
Parameters
- evidences
- Evidence[]
An array of evidence objects used to evaluate policy.
Returns
The set of permissions that is appropriate for all of the provided evidence.
- Attributes
Exceptions
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.
Remarks
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.
Applies to
ResolvePolicy(Evidence, PermissionSet, PermissionSet, PermissionSet, PermissionSet)
- Source:
- SecurityManager.cs
- Source:
- SecurityManager.cs
- Source:
- SecurityManager.cs
- Source:
- SecurityManager.cs
Caution
This API is now deprecated.
Caution
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.
Determines what permissions to grant to code based on the specified evidence and requests.
public:
static System::Security::PermissionSet ^ ResolvePolicy(System::Security::Policy::Evidence ^ evidence, System::Security::PermissionSet ^ reqdPset, System::Security::PermissionSet ^ optPset, System::Security::PermissionSet ^ denyPset, [Runtime::InteropServices::Out] System::Security::PermissionSet ^ % denied);
[System.Obsolete]
public static System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence evidence, System.Security.PermissionSet reqdPset, System.Security.PermissionSet optPset, System.Security.PermissionSet denyPset, out System.Security.PermissionSet denied);
public static System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence evidence, System.Security.PermissionSet reqdPset, System.Security.PermissionSet optPset, System.Security.PermissionSet denyPset, out System.Security.PermissionSet denied);
[System.Obsolete("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.")]
public static System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence evidence, System.Security.PermissionSet reqdPset, System.Security.PermissionSet optPset, System.Security.PermissionSet denyPset, out System.Security.PermissionSet denied);
[<System.Obsolete>]
static member ResolvePolicy : System.Security.Policy.Evidence * System.Security.PermissionSet * System.Security.PermissionSet * System.Security.PermissionSet * PermissionSet -> System.Security.PermissionSet
static member ResolvePolicy : System.Security.Policy.Evidence * System.Security.PermissionSet * System.Security.PermissionSet * System.Security.PermissionSet * PermissionSet -> System.Security.PermissionSet
[<System.Obsolete("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 member ResolvePolicy : System.Security.Policy.Evidence * System.Security.PermissionSet * System.Security.PermissionSet * System.Security.PermissionSet * PermissionSet -> System.Security.PermissionSet
Public Shared Function ResolvePolicy (evidence As Evidence, reqdPset As PermissionSet, optPset As PermissionSet, denyPset As PermissionSet, ByRef denied As PermissionSet) As PermissionSet
Parameters
- evidence
- Evidence
The evidence set used to evaluate policy.
- reqdPset
- PermissionSet
The required permissions the code needs to run.
- optPset
- PermissionSet
The optional permissions that will be used if granted, but aren't required for the code to run.
- denyPset
- PermissionSet
The denied permissions that must never be granted to the code even if policy otherwise permits it.
- denied
- PermissionSet
An output parameter that contains the set of permissions not granted.
Returns
The set of permissions that would be granted by the security system.
- Attributes
Exceptions
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.
Policy fails to grant the minimum required permissions specified by the reqdPset
parameter.
Remarks
This method invokes the security policy engine, providing it with evidence of the calling code's identity and the set of permissions the code requests. The result is determined by the security policy. This method returns the set of permissions that would be granted by the security system, and returns the set of permissions that would be denied as an output parameter. The effective granted permissions are those in the granted set that are not in the denied set.