Share via


HttpMethodConstraint Constructor (HttpMethod[])

 

Initializes a new instance of the HttpMethodConstraint class by using the HTTP verbs that are allowed for the route.

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

Syntax

public HttpMethodConstraint(
    params HttpMethod[] allowedMethods
)
public:
HttpMethodConstraint(
    ... array<HttpMethod^>^ allowedMethods
)
new : 
        [<ParamArrayAttribute>] allowedMethods:HttpMethod[] -> HttpMethodConstraint
Public Sub New (
    ParamArray allowedMethods As HttpMethod()
)

Parameters

See Also

HttpMethodConstraint Class
System.Web.Http.Routing Namespace

Return to top