This documentation is archived and is not being maintained.
HostSecurityPolicyResolver::ResolvePolicy Method
Visual Studio 2010
Gets a value that indicates the security policy that should be applied to an assembly.
Assembly: System.Web (in System.Web.dll)
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::HostSecurityPolicyResultsA 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.
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: