Mono Class Library: System.Security.Permissions.ReflectionPermission Overview | Members

System.Security.Permissions.ReflectionPermission.IsSubsetOf Method

Determines whether the current instance is a subset of the specified object. [Edit]

public override bool IsSubsetOf (System.Security.IPermission target)

Parameters

target
A System.Security.Permissions.ReflectionPermission instance that is to be tested for the subset relationship. [Edit]

Returns

true if the current instance is a subset of target ; otherwise, false. If the current instance is unrestricted, and target is not, returns false. If target is unrestricted, returns true. If target is null and the access level of the current instance is ReflectionPermissionFlag.NoFlags, returns true. If target is null and the access level of the current instance is any value other than ReflectionPermissionFlag.NoFlags, returns false. [Edit]

Exceptions

TypeReason
ArgumentExceptionThe target parameter is not null and is not an instance of System.Security.Permissions.ReflectionPermission . [Edit]

Remarks

Note:

The current instance is a subset of target if the current instance specifies a set of accesses to resources that is wholly contained by target . For example, a permission that represents access to type information is a subset of a permission that represents access to type information and members.

This method overrides System.Security.CodeAccessPermission.IsSubsetOf(System.Security.IPermission) and is implemented to support the System.Security.IPermission interface.

[Edit]

Requirements

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0