This documentation is archived and is not being maintained.

AspNetHostingPermission.IsSubsetOf Method

Returns a value indicating whether the current permission is a subset of the specified permission.

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

public override bool IsSubsetOf (
	IPermission target
public boolean IsSubsetOf (
	IPermission target
public override function IsSubsetOf (
	target : IPermission
) : boolean



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

Return Value

true if the current IPermission is a subset of the specified IPermission; otherwise, false.

Exception typeCondition


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