AuthorizeAttribute Class

 

Specifies the authorization filter that verifies the request's IPrincipal.

Namespace:   System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)

System.Object
  System.Attribute
    System.Web.Http.Filters.FilterAttribute
      System.Web.Http.Filters.AuthorizationFilterAttribute
        System.Web.Http.AuthorizeAttribute

[AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Method, 
	Inherited = true, AllowMultiple = true)]
public class AuthorizeAttribute : AuthorizationFilterAttribute

NameDescription
System_CAPS_pubmethodAuthorizeAttribute()

Initializes a new instance of the AuthorizeAttribute class.

NameDescription
System_CAPS_pubpropertyAllowMultiple

Gets a value that indicates whether multiple filters are allowed.(Inherited from FilterAttribute.)

System_CAPS_pubpropertyRoles

Gets or sets the authorized roles.

System_CAPS_pubpropertyTypeId

Gets a unique identifier for this attribute.(Overrides Attribute.TypeId.)

System_CAPS_pubpropertyUsers

Gets or sets the authorized users.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodHandleUnauthorizedRequest(HttpActionContext)

Processes requests that fail authorization.

System_CAPS_protmethodIsAuthorized(HttpActionContext)

Indicates whether the specified control is authorized.

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodOnAuthorization(HttpActionContext)

Calls when an action is being authorized.(Overrides AuthorizationFilterAttribute.OnAuthorization(HttpActionContext).)

System_CAPS_pubmethodOnAuthorizationAsync(HttpActionContext, CancellationToken)
System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Return to top
Show: