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

Namespace: Novalys.VisualGuard.Security
Assembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)

Syntax

C#
public bool IsSubsetOf(
	IPermission target
)
Visual Basic
Public Function IsSubsetOf ( 
	target As IPermission
) As Boolean

Parameters

target
Type: System.Security..::..IPermission
A permission that is to be tested for the subset relationship. This permission must be of the same type as the current permission.

Return Value

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

Implements

IPermission..::..IsSubsetOf(IPermission)

Exceptions

ExceptionCondition
System..::..ArgumentExceptionThe target parameter is an object that is not of the same type as the current permission.

See Also