Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpMethodConstraint Class

 

Enables you to define which HTTP verbs are allowed when ASP.NET routing determines whether a URL matches a route.

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

System::Object
  System.Web.Http.Routing::HttpMethodConstraint

public ref class HttpMethodConstraint : IHttpRouteConstraint

NameDescription
System_CAPS_pubmethodHttpMethodConstraint(array<HttpMethod^>^)

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

NameDescription
System_CAPS_pubpropertyAllowedMethods

Gets or sets the collection of allowed HTTP verbs for the route.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMatch(HttpRequestMessage^, IHttpRoute^, String^, IDictionary<String^, Object^>^, HttpRouteDirection)

Determines whether the request was made with an HTTP verb that is one of the allowed verbs for the route.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIHttpRouteConstraint::Match(HttpRequestMessage^, IHttpRoute^, String^, IDictionary<String^, Object^>^, HttpRouteDirection)

Determines whether the request was made with an HTTP verb that is one of the allowed verbs for the route.

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: