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!

SecurityPermission.Union

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

[Visual Basic]
Overrides Public Function Union( _
   ByVal target As IPermission _
) As IPermission
[C#]
public override IPermission Union(
   IPermission target
);
[C++]
public: override 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 two permissions- the object and the target.

Exceptions

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

Remarks

The result of a call to Union is a permission that represents all of the operations represented by the current permission object as well as the operations represented by the specified permission object.

See Also

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