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

NetworkInformationPermission

Controls access to network information and traffic statistics for the local computer. This class cannot be inherited.

Gets the level of access to network information controlled by this permission.

Initializes a new instance of the NetworkInformationPermission class with the specified PermissionState.

Initializes a new instance of the NetworkInformationPermission class using the specified NetworkInformationAccess value.

Adds the specified value to this permission.

public bool IsUnrestricted()

Returns a value indicating whether the current permission is unrestricted.