DnsPermissionAttribute Constructor (SecurityAction)


Initializes a new instance of the DnsPermissionAttribute class with the specified SecurityAction value.

Namespace:   System.Net
Assembly:  System (in System.dll)

new : 
        action:SecurityAction -> DnsPermissionAttribute


Type: System.Security.Permissions.SecurityAction

One of the SecurityAction values.

Exception Condition

The action parameter is not a valid SecurityAction.

The SecurityAction value that is passed to this constructor specifies the allowable DnsPermissionAttribute targets.

The following example uses DnsPermissionAttribute to apply declarative security to a custom class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top