Creates a permission instance that is the union of the current permission instance and the specified permission instance.
- target
The System.Net.DnsPermission instance to combine with the current instance.
![]()
A System.Net.DnsPermission instance that represents the union of the current System.Net.DnsPermission instance with the specified System.Net.DnsPermission instance. If target is null, this method returns a copy of the current instance. If the current instance or target is unrestricted, this method returns a System.Net.DnsPermission instance that is unrestricted; otherwise, it returns a System.Net.DnsPermission instance that is restricted.
Type Reason ArgumentNullException target is null.
The DnsPermission.Union(System.Security.IPermission) method returns a System.Net.DnsPermission instance that allows the access defined by either the current System.Net.DnsPermission instance or the specified System.Net.DnsPermission instance. Any demand that passes either permission passes their union.