NestedPermissionKeyRegistration class
namespace: Serenity.Localization assembly: Serenity.Net.Core
Contains helper methods for registration of permission keys in nested static classes. These classes contain string constants containing permission keys. The display name for permission keys can be set by a DisplayNameAttribute. The display name for groups can be set by a DescriptionAttribute on the classes themselves. For the group display name to work, all constants in a class must start with the same group prefix.
public static class NestedPermissionKeyRegistration
Public Members
| name | description |
|---|---|
| static AddNestedPermissions(…) | Gets permission keys and adds texts, if any, from static nested permission key classes marked with NestedPermissionKeysAttribute. |