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;
A new permission object that represents the intersection of the two permissions- the current object and the specified target.
Exception Type | Condition |
---|---|
ArgumentException | if target is an object that is not of the same type. |
The intersection is the minimum permission such that any demand that passes both permission will also pass their intersection.
IPermission Interface | IPermission Members | System.Security Namespace