The UrlIdentityPermission class represents the
System.Security.Policy.Url evidence of an assembly
or application domain. The UrlIdentityPermission
class allows code to make security decisions based on the URL from
which code was loaded using imperative security statements.
UrlIdentityPermission is useful for ensuring that
only the code loaded from particular locations can execute important
actions and resources. For example, only code loaded from a secure
server on the local network can run methods that manage user
accounts.

To create a UrlIdentityPermission object
representing a specific source URL, pass a
System.String containing the URL to the
UrlIdentityPermission constructor. The URL can
include the "*" wildcard character
as its last element. The source URL represented by a
UrlIdentityPermission can also be configured using
its Url property.