SocketPermission.Intersect(IPermission) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the logical intersection between two SocketPermission instances.
public:
override System::Security::IPermission ^ Intersect(System::Security::IPermission ^ target);
public override System.Security.IPermission Intersect(System.Security.IPermission target);
override this.Intersect : System.Security.IPermission -> System.Security.IPermission
Public Overrides Function Intersect (target As IPermission) As IPermission
Parameters
- target
- IPermission
The SocketPermission instance to intersect with the current instance.
Returns
The SocketPermission instance that represents the intersection of two SocketPermission instances. If the intersection is empty, the method returns null
. If the target
parameter is a null reference, the method returns null
.
Exceptions
The target
parameter is not a SocketPermission.
DnsPermission is not granted to the method caller.
Remarks
The intersection of two permissions is a permission that helps to protect the resources and operations protected by both permissions. Specifically, it represents the minimum permission such that any demand that passes both permissions also passes their intersection. This method overrides Intersect and is implemented to support the IPermission interface.