Union Method

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

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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2016 Microsoft