System.Security.Permissions.ResourcePermissionBase.Union Method

Creates a permission object that combines the current permission object and the target permission object.

Syntax

public override System.Security.IPermission Union (System.Security.IPermission target)

Parameters

target
A permission object to combine with the current permission object. It must be of the same type as the current permission object.

Returns

A new permission object that represents the union of the current permission object and the specified permission object.

Remarks

The result of a call to ResourcePermissionBase.Union(System.Security.IPermission) is a permission that represents all the operations represented by both the current permission object and the specified permission object. Any demand that passes either permission passes their union.

Requirements

Namespace: System.Security.Permissions
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0