Compartilhar via


Intersect(System.Security.IPermission) Method

The Intersect method of the WebPartPermission class returns the logical intersection of two WebPartPermission instances.

Parameters

target    The WebPartPermission to intersect with the current instance.

Return Value

System.Security.IPermission    A new WebPartPermission that represents the intersection of the current instance and the target parameter. If the intersection is empty, the method returns a null reference (Nothing in Visual Basic).

Exceptions

Exception Type Condition
ArgumentException The target parameter is not a null reference (Nothing in Visual Basic) and is not of the same type as the current permission.

Remarks

Intersect returns a WebPartPermission that contains the permissions that both the target and the current instance have in common.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security