Export (0) Print
Expand All

HttpMethodConstraint Class

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

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

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

public class HttpMethodConstraint : IHttpRouteConstraint

The HttpMethodConstraint type exposes the following members.

  NameDescription
Public methodHttpMethodConstraintInitializes a new instance of the HttpMethodConstraint class by using the HTTP verbs that are allowed for the route.
Top

  NameDescription
Public propertyAllowedMethodsGets or sets the collection of allowed HTTP verbs for the route.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMatchDetermines whether the request was made with an HTTP verb that is one of the allowed verbs for the route.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIHttpRouteConstraint.MatchDetermines whether the request was made with an HTTP verb that is one of the allowed verbs for the route.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft