Determines whether the current permission is a subset of the specified permission.
Namespace: Novalys.VisualGuard.SecurityAssembly: 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: Booleantrue if the current permission is a subset of the specified permission; otherwise, false.
Implements
IPermission..::..IsSubsetOf(IPermission)Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | The target parameter is an object that is not of the same type as the current permission. |