WebApiEnabledAttribute Class

 

Represents the attribute indicating that the controller supports multiple formats (HTML, XML, JSON etc), HTTP method based dispatch and HTTP error handling.

Namespace:   Microsoft.Web.Mvc.Resources
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

System.Object
  System.Attribute
    System.Web.Mvc.FilterAttribute
      System.Web.Mvc.ActionFilterAttribute
        Microsoft.Web.Mvc.Resources.WebApiEnabledAttribute

[<AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Method,
    Inherited = true, AllowMultiple = false)>]
type WebApiEnabledAttribute = 
    class
        inherit ActionFilterAttribute
        interface IExceptionFilter
    end

NameDescription
System_CAPS_pubmethodWebApiEnabledAttribute()

Initializes a new instance of the WebApiEnabledAttribute class.

NameDescription
System_CAPS_pubpropertyAllowMultiple

Gets or sets a value that indicates whether more than one instance of the filter attribute can be specified.(Inherited from FilterAttribute.)

System_CAPS_pubpropertyOrder

Gets or sets the order in which the action filters are executed.(Inherited from FilterAttribute.)

System_CAPS_pubpropertyStatusOnNullModel

Gets or sets the HTTP status code to use in case a null value is returned from the controller action method. The default is NotFound.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

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_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodSystem_CAPS_staticIsDefined(ControllerBase)

Returns a value that indicates whether the specified controller is defined on this member.

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodOnActionExecuted(ActionExecutedContext)

Called by the ASP.NET MVC framework after the action method executes.(Overrides ActionFilterAttribute.OnActionExecuted(ActionExecutedContext).)

System_CAPS_pubmethodOnActionExecuting(ActionExecutingContext)

Called by the ASP.NET MVC framework before the action method executes.(Inherited from ActionFilterAttribute.)

System_CAPS_pubmethodOnException(ExceptionContext)

Raises the exception event.

System_CAPS_pubmethodOnResultExecuted(ResultExecutedContext)

Called by the ASP.NET MVC framework after the action result executes.(Inherited from ActionFilterAttribute.)

System_CAPS_pubmethodOnResultExecuting(ResultExecutingContext)

Called by the ASP.NET MVC framework before the action result executes.(Inherited from ActionFilterAttribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryGetErrorResult(HttpException, ContentType, ResourceErrorActionResult)

Returns true if the specified exception, response format and action result will get an error result.

System_CAPS_pubmethodTryGetResult(ViewResultBase, ContentType, MultiFormatActionResult)

Returns true if the specified view result, response format and action result will get a result.

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: