AspNetHostingPermission.Intersect Method

When implemented by a derived class, creates and returns a permission that is the intersection of the current permission and the specified permission.

Namespace: System.Web
Assembly: System (in system.dll)

public:
virtual IPermission^ Intersect (
	IPermission^ target
) override
public IPermission Intersect (
	IPermission target
)
public override function Intersect (
	target : IPermission
) : IPermission

Parameters

target

A permission to combine with the current permission. It must be of the same type as the current permission.

Return Value

An IPermission that represents the intersection of the current permission and the specified permission; otherwise, a null reference (Nothing in Visual Basic) if the intersection is empty.

Exception typeCondition

ArgumentException

target is not an AspNetHostingPermission.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1

Community Additions

ADD
Show: