Export (0) Print
Expand All

ResourcePermissionBase.Union Method

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

[Visual Basic]
Overrides Public Function Union( _
   ByVal target As IPermission _
) As IPermission Implements IPermission.Union
[C#]
public override IPermission Union(
 IPermission target
);
[C++]
public: IPermission* Union(
 IPermission* target
);
[JScript]
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.

Implements

IPermission.Union

Exceptions

Exception Type Condition
ArgumentException The target permission object is not of the same type as the current permission object.

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ResourcePermissionBase Class | ResourcePermissionBase Members | System.Security.Permissions Namespace

Show:
© 2015 Microsoft