ResourcePermissionBase.Intersect Method (IPermission)
.NET Framework (current version)
Creates and returns a permission object that is the intersection of the current permission object and a target permission object.
Assembly: System (in System.dll)
Parameters
- target
-
Type:
System.Security.IPermission
A permission object of the same type as the current permission object.
Return Value
Type: System.Security.IPermissionA new permission object that represents the intersection of the current object and the specified target. This object is null if the intersection is empty.
Implements
IPermission.Intersect(IPermission)| Exception | Condition |
|---|---|
| ArgumentException | The target permission object is not of the same type as the current permission object. |
The intersection of two permission objects is a permission that describes the set of operations they both hold in common. Specifically, it represents the minimum permissions required for a demand to pass both permissions.
.NET Framework
Available since 1.1
Available since 1.1
Show: