System.Security.Permissions.KeyContainerPermission.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 the current permission specifies a set of operations that is wholly contained in the specified permission. For example, a permission for KeyContainerPermissionFlags.Open access is a subset of a permission for KeyContainerPermissionFlags.AllFlags access.

Requirements

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