Returns a new System.Security.Permissions.EnvironmentPermission object that is the intersection of the current instance and the specified object.
- target
- A System.Security.Permissions.EnvironmentPermission instance to intersect with the current instance.
A new System.Security.Permissions.EnvironmentPermission instance that represents the intersection of the current instance and target. If the intersection is empty or target is null, returns null. If the current instance is unrestricted, returns a copy of target. If target is unrestricted, returns a copy of the current instance.
Type Reason ArgumentException target is not null and is not of type System.Security.Permissions.EnvironmentPermission.
Note:The intersection of two permissions is a permission that secures the resources and operations secured by both permissions. Specifically, it represents the minimum permission such that any demand that passes both permissions will also pass their intersection.
This method overrides System.Security.CodeAccessPermission.Intersect(System.Security.IPermission) and is implemented to support the System.Security.IPermission interface.
Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0