System.Security.Policy.Url Class

Provides the URL from which a code assembly originates as evidence for policy evaluation. This class cannot be inherited.

See Also: Url Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public sealed class Url : EvidenceBase, IBuiltInEvidence, IIdentityPermissionFactory

Remarks

The presence of System.Security.Policy.Url evidence produces a System.Security.Permissions.UrlIdentityPermission in the grant set. If there is a System.Security.CodeAccessPermission.Demand for System.Security.Permissions.UrlIdentityPermission, the System.Security.Permissions.UrlIdentityPermission that corresponds to the System.Security.Policy.Url evidence is compared to the demanded permission.

The complete URL is considered, including the protocol (HTTP, HTTPS, FTP) and the file. For example, http://www.fourthcoffee.com/process/grind.htm is a complete URL.

URLs can be matched exactly or by a wildcard in the final position. For example, http://www.fourthcoffee.com/process/* is a wildcard URL.

Requirements

Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0