.NET Standard 2.0+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.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.