Edit

Share via


DnsPermission(PermissionState) Constructor

Definition

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.

Applies to