This documentation is archived and is not being maintained.

AspNetHostingPermission.Intersect Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

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

[Visual Basic]
Overrides Public Function Intersect( _
   ByVal target As IPermission _
) As IPermission Implements IPermission.Intersect
[C#]
public override IPermission Intersect(
 IPermission target
);
[C++]
public: IPermission* Intersect(
 IPermission* target
);
[JScript]
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. The new permission is a null reference (Nothing in Visual Basic) if the intersection is empty.

Implements

IPermission.Intersect

Exceptions

Exception Type Condition
ArgumentException target is not an AspNetHostingPermission.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

AspNetHostingPermission Class | AspNetHostingPermission Members | System.Web Namespace

Show: