See Also: DnsPermissionAttribute Members
The security information declared by System.Net.DnsPermissionAttribute is stored in the metadata of the attribute target, which is the class to which the System.Net.DnsPermissionAttribute is applied. The system then accesses this information at run time. The System.Security.Permissions.SecurityAction that is passed to the constructor determines the allowable DNS targets.
Security access is either fully restricted or fully unrestricted. Set the System.Security.Permissions.PermissionState.Unrestricted property to true to grant access, or false for no access. Set this property as a named parameter.
For more information about using attributes, see [<topic://cpconExtendingMetadataUsingAttributes>].