Constructs and initializes a new instance of the System.Net.DnsPermission class with the specified System.Security.Permissions.PermissionState value.
- state
- A System.Security.Permissions.PermissionState value.
Type Reason ArgumentException state is not a valid System.Security.Permissions.PermissionState value.
Note:This constructor creates either fully restricted (System.Security.Permissions.PermissionState.None) or System.Security.Permissions.PermissionState.Unrestricted access to DNS information.
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0