SocketPermission.Union(IPermission) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the logical union between two SocketPermission instances.
public:
override System::Security::IPermission ^ Union(System::Security::IPermission ^ target);
public override System.Security.IPermission Union(System.Security.IPermission target);
override this.Union : System.Security.IPermission -> System.Security.IPermission
Public Overrides Function Union (target As IPermission) As IPermission
Parameters
- target
- IPermission
The SocketPermission instance to combine with the current instance.
Returns
The SocketPermission instance that represents the union of two SocketPermission instances. If target
parameter is null
, it returns a copy of the current instance.
Exceptions
target
is not a SocketPermission.
Remarks
The result of a call to Union 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 Union and is implemented to support the IPermission interface.