Creates a permission that is the union of the current permission and the specified permission.
Namespace: Novalys.VisualGuard.SecurityAssembly: 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: IPermissionA new permission that represents the union of the current permission and the specified permission.
Implements
IPermission..::..Union(IPermission)Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | The other parameter is an object that is not of the same type as the current permission. |