Skip to main content
.NET 6.0+

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.