The Intersect method of the WebPartPermission class returns the logical intersection of two WebPartPermission instances.
target The WebPartPermission to intersect with the current instance.
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).
|ArgumentException||The target parameter is not a null reference (Nothing in Visual Basic) and is not of the same type as the current permission.|
Intersect returns a WebPartPermission that contains the permissions that both the target and the current instance have in common.
Platforms: Microsoft Windows Server 2003
Security: Code Access Security