System.Security.Permissions.UIPermission.IsSubsetOf Method

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

Syntax

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

Parameters

target
A permission to test for the subset relationship. This permission must be 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. That is, the specified permission contains at least the permissions contained in the subset. For UIPermission.IsSubsetOf(System.Security.IPermission) to return true, both the System.Security.Permissions.UIPermissionWindow and System.Security.Permissions.UIPermissionClipboard values of the current permission must be equal to or less permissive than the values of 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