This documentation is archived and is not being maintained.

HttpMethodConstraint Members

Visual Studio 2008

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

The HttpMethodConstraint type exposes the following members.

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

  NameDescription
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method Match Determines whether the request was made with an HTTP verb that is one of the allowed verbs for the route.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public property AllowedMethods Gets the collection of allowed HTTP verbs for the route.
Top

  NameDescription
Explicit interface implemetation Private method IRouteConstraint::Match For a description of this member, see Match.
Top
Show: