Partager via


AuthorizeAttribute.IsAuthorized Method

Indicates whether the specified control is authorized.

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

Syntax

'Declaration
Protected Overridable Function IsAuthorized ( _
    actionContext As HttpActionContext _
) As Boolean
'Usage
Dim actionContext As HttpActionContext 
Dim returnValue As Boolean 

returnValue = Me.IsAuthorized(actionContext)
protected virtual bool IsAuthorized(
    HttpActionContext actionContext
)
protected:
virtual bool IsAuthorized(
    HttpActionContext^ actionContext
)
abstract IsAuthorized : 
        actionContext:HttpActionContext -> bool  
override IsAuthorized : 
        actionContext:HttpActionContext -> bool
protected function IsAuthorized(
    actionContext : HttpActionContext
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the control is authorized; otherwise, false.

See Also

Reference

AuthorizeAttribute Class

System.Web.Http Namespace