NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IPermission.Union

Computes a permission that is the union of the permission object and the target parameter permission object.

[Visual Basic]
Function Union( _
   ByVal target As IPermission _
) As IPermission
[C#]
IPermission Union(
   IPermission target
);
[C++]
IPermission* Union(
   IPermission* target
) = 0;
[JScript]
function Union(
   target : IPermission
) : IPermission;

Parameters

target
Another permission object of same type that is to be unioned.

Return Value

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

Exceptions

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

Remarks

The union is the minimum permission such that any demand that passes either permission will also pass their union.

See Also

IPermission Interface | IPermission Members | System.Security Namespace