Edit

Share via


WebPermission.Intersect(IPermission) Method

Definition

Returns the logical intersection of two WebPermission 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 WebPermission to compare with the current instance.

Returns

A new WebPermission that represents the intersection of the current instance and the target parameter. If the intersection is empty, the method returns null.

Exceptions

target is not null or of type WebPermission

Remarks

Intersect returns a WebPermission that contains those permissions that are common in both target and the current instance.

This method overrides Intersect and is implemented to support the IPermission interface.

Applies to