System.Web.Mvc Namespace


.NET Framework Class Library
AuthorizeAttribute Class

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)
Syntax

Visual Basic (Declaration)
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Method, Inherited := True,  _
    AllowMultiple := True)> _
Public Class AuthorizeAttribute _
    Inherits FilterAttribute _
    Implements IAuthorizationFilter
Visual Basic (Usage)
Dim instance As AuthorizeAttribute
C#
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Method, Inherited = true, 
    AllowMultiple = true)]
public class AuthorizeAttribute : FilterAttribute, 
    IAuthorizationFilter
Visual C++
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Method, Inherited = true, 
    AllowMultiple = true)]
public ref class AuthorizeAttribute : public FilterAttribute, 
    IAuthorizationFilter
Remarks

For more information about how to use attributes, see Extending Metadata Using Attributes.

Inheritance Hierarchy

System..::.Object
  System..::.Attribute
    System.Web.Mvc..::.FilterAttribute
      System.Web.Mvc..::.AuthorizeAttribute
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Reference

Other Resources

Tags :


Page view tracker