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: 3.2.912.1 (3.2.912.01)

Syntax

C#
public bool IsSubsetOf(
	IPermission target
)
Visual Basic (Declaration)
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

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