ResourcePermissionBase.Union Method

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

Namespace: System.Security.Permissions
Assembly: System (in system.dll)

public override IPermission Union (
	IPermission target
)
public IPermission Union (
	IPermission target
)
public override function Union (
	target : IPermission
) : IPermission
Not applicable.

Parameters

target

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

Return Value

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

Exception typeCondition

ArgumentException

The target permission object is not of the same type as the current permission object.

The result of a call to Union 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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: