<PackageReference Include="System.Security.Permissions" Version="10.0.0-preview.3.25171.5" />

UrlIdentityPermission

Defines the identity permission for the URL from which the code originates. This class cannot be inherited.
public string Url { get; set; }

Gets or sets a URL representing the identity of Internet code.

Initializes a new instance of the UrlIdentityPermission class with the specified PermissionState.

public UrlIdentityPermission(string site)

Initializes a new instance of the UrlIdentityPermission class to represent the URL identity described by site.