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

System.Net.NetworkInformation.NetworkInformationPermissionAttribute

Allows security actions for NetworkInformationPermission to be applied to code using declarative security.
public string Access { get; set; }

Gets or sets the network information access level.

Initializes a new instance of the NetworkInformationPermissionAttribute class.