ConfigurationPermission.IsSubsetOf Method

Note: This method is new in the .NET Framework version 2.0.

Compares the ConfigurationPermission object with an object implementing the IPermission interface.

Namespace: System.Configuration
Assembly: System.Configuration (in system.configuration.dll)

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

Parameters

target

The object to compare to.

Return Value

true if the permission state is equal; otherwise, false.

Exception typeCondition

ArgumentException

target is not typed as ConfigurationPermission.

Although the method signature accepts any object that implements the IPermission interface, an ArgumentException exception will be thrown if calling the GetType method on the object referenced by the target parameter does not return System.Configuration.ConfigurationPermission.

If the object referenced by the target parameter is a null reference (Nothing in Visual Basic), the comparison is done between the permission state of the ConfigurationPermission object and the None value of the PermissionState enumeration.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, 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

Community Additions

ADD
Show: