This documentation is archived and is not being maintained.

HostSecurityPolicyResolver.ResolvePolicy Method

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

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: