Creates and returns a permission that is the intersection of the current permission object and a target permission object.
[Visual Basic] Overrides Public Function Intersect( _ ByVal target As IPermission _ ) As IPermission [C#] public override IPermission Intersect( IPermission target ); [C++] public: override IPermission* Intersect( IPermission* target ); [JScript] public override function Intersect( target : IPermission ) : IPermission;
Returns the intersection of the current permission object and the permission specified, which will be either a permission object or a null reference if the intersection is empty.
Exception Type | Condition |
---|---|
ArgumentException | if target is not a null reference and is not an instance of the same class that this TBD object is an instance of. |
The intersection of two permission objects is a permission object that describes the operations that are specified by both permissions.
EnvironmentPermission Class | EnvironmentPermission Members | System.Security.Permissions Namespace