Returns the logical intersection of two System.Net.WebPermission instances.
- target
- The System.Net.WebPermission to compare with the current instance.
A new System.Net.WebPermission that represents the intersection of the current instance and the target parameter. If the intersection is empty, the method returns null.
Type Reason ArgumentNullException target is null. ArgumentException target is not null and is not of type System.Net.WebPermission .
WebPermission.Intersect(System.Security.IPermission) returns a System.Net.WebPermission that contains those permissions that are common in both target and the current instance.
This method overrides System.Security.CodeAccessPermission.Intersect(System.Security.IPermission) and is implemented to support the System.Security.IPermission interface.