<PackageReference Include="System.Security.Permissions" Version="11.0.0-preview.2.26159.112" />

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.