NavigationLinkAttribute.GetPermissionFromController method
Tries to extract the permission from a controller action.
public static string? GetPermissionFromController(Type controller, string action)
| parameter | description |
|---|---|
| controller | The controller. |
| action | The action. |
Return Value
The permission key, or null if none is found.
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Controller or action is null. |
| ArgumentOutOfRangeException | The action name is invalid. |
See Also
- class NavigationLinkAttribute