Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HostSecurityPolicyResolver.ResolvePolicy Method

.NET Framework 4.6 and 4.5

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

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft