Class ChildActionOnlyAttribute
Represents an attribute that is used to indicate that an action method should be called only as a child action.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class ChildActionOnlyAttribute : FilterAttribute, IMvcFilter, IAuthorizationFilter
- Inheritance
-
ChildActionOnlyAttribute
- Implements
- Inherited Members
Constructors
ChildActionOnlyAttribute()
Initializes a new instance of the ChildActionOnlyAttribute class.
public ChildActionOnlyAttribute()
Methods
OnAuthorization(AuthorizationContext)
Called when authorization is required.
public void OnAuthorization(AuthorizationContext filterContext)
Parameters
filterContext
AuthorizationContextAn object that encapsulates the information that is required in order to authorize access to the child action.