NavigationLinkAttribute.GetFeaturesFromController method
Tries to extract features from a controller action.
public static string[] GetFeaturesFromController(Type controller, string action,
out bool requireAny)
| parameter | description |
|---|---|
| controller | The controller. |
| action | The action. |
| requireAny | Whether any of the features are required. |
Return Value
The list of required features, 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