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

Zone

Provides the security zone of a code assembly as evidence for policy evaluation. This class cannot be inherited.
public SecurityZone SecurityZone { get; }

Gets the zone from which the code assembly originates.

public Zone(SecurityZone zone)

Initializes a new instance of the Zone class with the zone from which a code assembly originates.

public static Zone CreateFromUrl(string url)

Creates a new zone with the specified URL.

public object Copy()

Creates an equivalent copy of the evidence object.

Creates an identity permission that corresponds to the current instance of the Zone evidence class.