Represents an attribute that is used to restrict access by callers to an action method.
Namespace:
System.Web.Mvc
Assembly:
System.Web.Mvc (in System.Web.Mvc.dll)
Visual Basic (Declaration)
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Method, Inherited := True, _
AllowMultiple := True)> _
Public Class AuthorizeAttribute _
Inherits FilterAttribute _
Implements IAuthorizationFilter
Dim instance As AuthorizeAttribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Method, Inherited = true,
AllowMultiple = true)]
public class AuthorizeAttribute : FilterAttribute,
IAuthorizationFilter
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Method, Inherited = true,
AllowMultiple = true)]
public ref class AuthorizeAttribute : public FilterAttribute,
IAuthorizationFilter
For more information about how to use attributes, see Extending Metadata Using Attributes.
System..::.Object
System..::.Attribute
System.Web.Mvc..::.FilterAttribute
System.Web.Mvc..::.AuthorizeAttribute
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Reference
Other Resources