Mono Class Library: System.Security.PermissionSet Overview | Members

System.Security.PermissionSet.IsSubsetOf Method

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

public bool IsSubsetOf (PermissionSet target)

Parameters

target
A System.Security.PermissionSet instance that is to be tested for the subset relationship.

Returns

true if the current instance is a subset of target; otherwise, false.

Remarks

Note:

The current instance is a subset target if all demands that succeed for the current instance also succeed for target. That is, the current instance is a subset of target if target contains at least the permissions contained in the current instance.

If this method returns true , the current instance does not describe a level of access to a set of resources that is not already described by target.

Operation
As described above.

Usage
Use this method to determine if the all permissions contained in the current instance are also contained in target.

Requirements

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