Edit

Share via


PrincipalPermission.IsSubsetOf(IPermission) Method

Definition

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

public:
 virtual bool IsSubsetOf(System::Security::IPermission ^ target);
public bool IsSubsetOf(System.Security.IPermission target);
abstract member IsSubsetOf : System.Security.IPermission -> bool
override this.IsSubsetOf : System.Security.IPermission -> bool
Public Function IsSubsetOf (target As IPermission) As Boolean

Parameters

target
IPermission

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.

Implements

Exceptions

The target parameter is an object that is not of the same type as the current permission.

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.

Applies to