KeyContainerPermission::IsSubsetOf Method (IPermission^)

 

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

Namespace:   System.Security.Permissions
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual bool IsSubsetOf(
	IPermission^ target
) override

Parameters

target
Type: System.Security::IPermission^

A permission to test for the subset relationship. This permission must be the same type as the current permission.

Return Value

Type: System::Boolean

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

Exception Condition
ArgumentException

target is not null and does not specify a permission of the same type as the current permission.

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 Open access is a subset of a permission for AllFlags access.

.NET Framework
Available since 2.0
Return to top
Show: