Computes a permission that is the union of the permission object and the target parameter permission object.
[Visual Basic] Function Union( _ ByVal target As IPermission _ ) As IPermission [C#] IPermission Union( IPermission target ); [C++] IPermission* Union( IPermission* target ) = 0; [JScript] function Union( target : IPermission ) : IPermission;
A new permission object that represents the union of the two permissions- the current permission object and the specified permission object.
Exception Type | Condition |
---|---|
ArgumentException | if target is an object that is not of the same type as the current permission object. |
The union is the minimum permission such that any demand that passes either permission will also pass their union.
IPermission Interface | IPermission Members | System.Security Namespace