System.Security.PermissionSet.Union Method

Creates a System.Security.PermissionSet that is the union of the current System.Security.PermissionSet and the specified System.Security.PermissionSet.

Syntax

public PermissionSet Union (PermissionSet other)

Parameters

other
The permission set to form the union with the current System.Security.PermissionSet.

Returns

A new permission set that represents the union of the current System.Security.PermissionSet and the specified System.Security.PermissionSet.

Remarks

The result of a call to PermissionSet.Union(PermissionSet) is a System.Security.PermissionSet that represents all the operations represented by the current System.Security.PermissionSet as well as all the operations represented by the specified System.Security.PermissionSet. If either set is Unrestricted, the union is Unrestricted as well.

Requirements

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