System.Security.Permissions.DataProtectionPermission.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 DataProtectionPermissionFlags.ProtectData access is a subset of a permission for DataProtectionPermissionFlags.AllFlags access.

Requirements

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