public sealed class Url : IIdentityPermissionFactory, IBuiltInEvidence {
// Public Constructors
public Url(string name);
// Public Instance Properties
public string Value{get; }
// Public Instance Methods
public object Copy( );
public IPermission CreateIdentityPermission(Evidence evidence);
// implements IIdentityPermissionFactory
public override bool Equals(object o);
// overrides object
public override int GetHashCode( );
// overrides object
public override string ToString( );
// overrides object
}
The Url evidence class identifies the URL from
where an assembly was loaded—for example, https://www.oreilly.com:8080/SomeFile.exe.
The source URL is passed as a System.String
argument to the Url constructor and is accessible
later through the Value property.
During policy resolution, the
UrlMembershipCondition class uses
Url evidence to determine if code qualifies for
membership of a code group. The
ApplicationDirectoryMembershipCondition class also
uses Url evidence in conjunction with
ApplicationDirectory evidence to determine code
group membership.
Because the Url class implements the
IIdentityPermissionFactory interface, an assembly
or application domain with Url evidence will
contain an appropriately configured
System.Security.Permissions.UrlIdentityPermission
object in its grant set.