Configures the roles required to access a controller or action.
Initializes a new instance of AuthMvcAttribute.
public Void AuthMvcAttribute(requiredRoles)
Name | Type | Summary |
---|---|---|
requiredRoles | String[] | A collection of required role names. |
View name for the forbidden message.
public String ForbiddenViewName { get; set; }
In this document