System.Security.Permissions.PrincipalPermission.IsSubsetOf Method

Determines whether the current permission is a subset of the specified permission.

Syntax

public bool IsSubsetOf (System.Security.IPermission target)

Parameters

target
A permission that is to be tested for the subset relationship. This permission must be of the same type as the current permission.

Returns

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

Remarks

The current permission is a subset of the specified permission if all demands that succeed for the current permission also succeed for the specified permission.

Requirements

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