Creates and returns a permission object that represents the intersection of the specified permission with the current permission object. The intersection describes the resource access allowed by both the current object and the specified 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.
FileIOPermission Class | FileIOPermission Members | System.Security.Permissions Namespace