Creates a permission that is the union of the permission object and the target parameter permission object.
[Visual Basic] Overridable Public Function Union( _ ByVal other As IPermission _ ) As IPermission [C#] public virtual IPermission Union( IPermission other ); [C++] public: virtual IPermission* Union( IPermission* other ); [JScript] public function Union( other : IPermission ) : IPermission;
A new permission object that represents the union of the two permissions- the object and the target.
Exception Type | Condition |
---|---|
ArgumentException | if other is not the same type that the current permission object is. |
The result of a call to Union is a permission that represents all of the operations represented by the current permission object as well as the operations represented by the specified permission object.
CodeAccessPermission Class | CodeAccessPermission Members | System.Security Namespace