Mono Class Library: System.Net.SocketPermission Overview | Members

System.Net.SocketPermission.Union Method

Returns a System.Net.SocketPermission that is the union of the current instance and the specified object. [Edit]

public override System.Security.IPermission Union (System.Security.IPermission target)

Parameters

target
A System.Net.SocketPermission instance to combine with the current instance. [Edit]

Returns

A System.Net.SocketPermission instance that represents the union of the current instance and target. If the current instance or target is unrestricted, returns a System.Net.SocketPermission instance that is unrestricted. [Edit]

Exceptions

TypeReason
ArgumentNullExceptiontarget is null. [Edit]
ArgumentExceptiontarget is not of type System.Net.SocketPermission . [Edit]

Remarks

Note:

The result of a call to SocketPermission.Union(System.Security.IPermission) is a permission that represents all of the access to socket connections represented by the current instance as well as the access 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.

[Edit]

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0