HostSecurityPolicyResolver::ResolvePolicy Method (Evidence^)

.NET Framework (current version)
 

Gets a value that indicates the security policy that should be applied to an assembly.

Namespace:   System.Web.Hosting
Assembly:  System.Web (in System.Web.dll)

public:
virtual HostSecurityPolicyResults ResolvePolicy(
	Evidence^ evidence
)

Parameters

evidence
Type: System.Security.Policy::Evidence^

A collection of evidence about an assembly and a host, which is used as an input to security policy.

Return Value

Type: System.Web.Hosting::HostSecurityPolicyResults

A value that indicates the type of security permissions should be applied to an assembly.

If you inherit from the HostSecurityPolicyResolver class, you must implement the ResolvePolicy method. Based on the information that is provided in the evidence parameter, the method should return one of the security policies that are defined in the HostSecurityPolicyResults enumeration.

.NET Framework
Available since 4.0
Return to top
Show: