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.Intersect

Computes a permission that is the intersection of the permission object and the target parameter permission object. The intersection of two permissions is a permission that describes the set of operations they both describe in common.

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

Parameters

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

Return Value

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

Exceptions

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

Remarks

The intersection is the minimum permission such that any demand that passes both permission will also pass their intersection.

See Also

IPermission Interface | IPermission Members | System.Security Namespace