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


public sealed class Url : EvidenceBase, IBuiltInEvidence, IIdentityPermissionFactory


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, is a complete URL.

URLs can be matched exactly or by a wildcard in the final position. For example,* is a wildcard URL.


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