Determines at run time whether the current Visual Guard principal matches the principal specified by the current 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 void Demand()
Visual Basic
Public Sub Demand

Implements

IPermission..::..Demand()()()()

Exceptions

ExceptionCondition
System.Security..::..SecurityExceptionThe current principal does not pass the security check for the principal specified by the current permission.

-or-

The current IPrincipal is null.

See Also