ApiExplorer.GetHttpMethodsSupportedByAction Method

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

'Declaration
Public Overridable Function GetHttpMethodsSupportedByAction ( _
    route As IHttpRoute, _
    actionDescriptor As HttpActionDescriptor _
) As Collection(Of HttpMethod)
'Usage
Dim instance As ApiExplorer 
Dim route As IHttpRoute 
Dim actionDescriptor As HttpActionDescriptor 
Dim returnValue As Collection(Of HttpMethod)

returnValue = instance.GetHttpMethodsSupportedByAction(route, _
    actionDescriptor)
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 function GetHttpMethodsSupportedByAction(
    route : IHttpRoute, 
    actionDescriptor : HttpActionDescriptor
) : Collection<HttpMethod>

Parameters

Return Value

Type: System.Collections.ObjectModel.Collection<HttpMethod>
A collection of HttpMethods supported by the action.

See Also

Reference

ApiExplorer Class

System.Web.Http.Description Namespace