System.Security.PermissionSet.IsSubsetOf Method

Determines whether the current System.Security.PermissionSet is a subset of the specified System.Security.PermissionSet.

Syntax

public bool IsSubsetOf (PermissionSet target)

Parameters

target
The permission set to test for the subset relationship. This must be either a System.Security.PermissionSet or a System.Security.NamedPermissionSet.

Returns

true if the current System.Security.PermissionSet is a subset of the target parameter; otherwise, false.

Remarks

A System.Security.PermissionSet is a subset of the target System.Security.PermissionSet if all demands that succeed for the System.Security.PermissionSet also succeed for the target. That is, the target contains at least the permissions contained in the subset.

Requirements

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