Mono Class Library: System.Net.WebPermission Overview | MembersSystem.Net.WebPermission.Union Method |
Returns a new System.Net.WebPermission object that is the union of the current instance and the specified object. [Edit]
|
- target
- The System.Net.WebPermission instance to combine with the current instance. [Edit]
A new System.Net.WebPermission instance that represents the union of the current instance and target. If the current instance or target is unrestricted, returns a System.Net.WebPermission instance that is unrestricted. [Edit]
Type Reason ArgumentNullException target is null. [Edit] ArgumentException target is not null and is not of type System.Net.WebPermission . [Edit]
Note:[Edit]The result of a call to WebPermission.Union(System.Security.IPermission) is a permission that represents all of the access to permissions represented by the current instance as well as the permissions represented by target. Any demand that passes either the current instance or target passes their union.
This method overrides System.Security.CodeAccessPermission.Union(System.Security.IPermission) and is implemented to support the System.Security.IPermission interface.
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0