ApiExplorer.GetHttpMethodsSupportedByAction Method (IHttpRoute, HttpActionDescriptor)

 

Gets a collection of HttpMethods supported by the action. Called when initializing the ApiDescriptions.

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

Syntax

public virtual Collection<HttpMethod> GetHttpMethodsSupportedByAction(
    IHttpRoute route,
    HttpActionDescriptor actionDescriptor
)
public:
virtual Collection<HttpMethod^>^ GetHttpMethodsSupportedByAction(
    IHttpRoute^ route,
    HttpActionDescriptor^ actionDescriptor
)
abstract GetHttpMethodsSupportedByAction : 
        route:IHttpRoute *
        actionDescriptor:HttpActionDescriptor -> Collection<HttpMethod>
override GetHttpMethodsSupportedByAction : 
        route:IHttpRoute *
        actionDescriptor:HttpActionDescriptor -> Collection<HttpMethod>
Public Overridable Function GetHttpMethodsSupportedByAction (
    route As IHttpRoute,
    actionDescriptor As HttpActionDescriptor
) As Collection(Of HttpMethod)

Parameters

Return Value

Type: System.Collections.ObjectModel.Collection<HttpMethod>

A collection of HttpMethods supported by the action.

See Also

ApiExplorer Class
System.Web.Http.Description Namespace

Return to top