Skip to main content
.NET Framework 4.6.2+

SecuritySystem.Demand Method

Name Parameters Description
Demand(IPermissionRequest) static permissionRequest Throws a SecurityException exception when the current user is allowed to execute a particular secured operation.
Demand(IPermission) static permission Throws a SecurityException exception if the specified permission is not granted to the current user.