<PackageReference Include="System.Security.Permissions" Version="9.0.6" />

Site

Provides the Web site from which a code assembly originates as evidence for policy evaluation. This class cannot be inherited.
public string Name { get; }

Gets the website from which the code assembly originates.

public Site(string name)

Initializes a new instance of the Site class with the website from which a code assembly originates.

public static Site CreateFromUrl(string url)

Creates a new Site object from the specified URL.

public object Copy()

Creates an equivalent copy of the Site object.

Creates an identity permission that corresponds to the current Site object.