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

ZoneIdentityPermissionAttribute

Allows security actions for ZoneIdentityPermission to be applied to code using declarative security. This class cannot be inherited.
public SecurityZone Zone { get; set; }

Gets or sets membership in the content zone specified by the property value.

Initializes a new instance of the ZoneIdentityPermissionAttribute class with the specified SecurityAction.