Creates a permission that is the union of the current permission and the specified permission.

Namespace: Novalys.VisualGuard.Security
Assembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)

Syntax

C#
public IPermission Union(
	IPermission other
)
Visual Basic
Public Function Union ( 
	other As IPermission
) As IPermission

Parameters

other
Type: System.Security..::..IPermission
A permission to combine with the current permission. It must be of the same type as the current permission.

Return Value

Type: IPermission
A new permission that represents the union of the current permission and the specified permission.

Implements

IPermission..::..Union(IPermission)

Exceptions

ExceptionCondition
System..::..ArgumentExceptionThe other parameter is an object that is not of the same type as the current permission.

See Also