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
route
Type: System.Web.Http.Routing.IHttpRouteThe route.
actionDescriptor
Type: System.Web.Http.Controllers.HttpActionDescriptorThe action descriptor.
Return Value
Type: System.Collections.ObjectModel.Collection<HttpMethod>
A collection of HttpMethods supported by the action.