Bewerken

Share via


HostSecurityManager.ResolvePolicy(Evidence) Method

Definition

Caution

This API is now deprecated.

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

public:
 virtual System::Security::PermissionSet ^ ResolvePolicy(System::Security::Policy::Evidence ^ evidence);
[System.Obsolete]
public virtual System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence evidence);
public virtual System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence evidence);
[<System.Obsolete>]
abstract member ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
override this.ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
abstract member ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
override this.ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
Public Overridable Function ResolvePolicy (evidence As Evidence) As PermissionSet

Parameters

evidence
Evidence

The evidence set used to evaluate policy.

Returns

The permission set that can be granted by the security system.

Attributes

Exceptions

evidence is null.

Remarks

This method invokes the security policy engine, providing it with the specified evidence. The result is determined by the security policy.

Applies to