DnsPermission(PermissionState) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of the DnsPermission class that either allows unrestricted DNS access or disallows DNS access.
public:
DnsPermission(System::Security::Permissions::PermissionState state);
public DnsPermission(System.Security.Permissions.PermissionState state);
new System.Net.DnsPermission : System.Security.Permissions.PermissionState -> System.Net.DnsPermission
Public Sub New (state As PermissionState)
Parameters
- state
- PermissionState
One of the PermissionState values.
Exceptions
state
is not a valid PermissionState value.
Remarks
If state
is Unrestricted, the DnsPermission instance passes all demands. If state
contains any other value, the DnsPermission instance fails all demands.