Partager via


HttpRouteCollectionExtensions Class

Extension methods for HttpRouteCollection

Inheritance Hierarchy

System.Object
  System.Web.Http.HttpRouteCollectionExtensions

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

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class HttpRouteCollectionExtensions
'Usage
public static class HttpRouteCollectionExtensions
[ExtensionAttribute]
public ref class HttpRouteCollectionExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type HttpRouteCollectionExtensions =  class end
public final class HttpRouteCollectionExtensions

Methods

  Name Description
Public methodStatic member MapHttpRoute(HttpRouteCollection, String, String) Maps the specified route template.
Public methodStatic member MapHttpRoute(HttpRouteCollection, String, String, Object) Maps the specified route template and sets default route values.
Public methodStatic member MapHttpRoute(HttpRouteCollection, String, String, Object, Object) Maps the specified route template and sets default route values and constraints.
Public methodStatic member MapHttpRoute(HttpRouteCollection, String, String, Object, Object, HttpMessageHandler) Maps the specified route template and sets default route values, constraints, and end-point message handler.

Top

Thread Safety

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

See Also

Reference

System.Web.Http Namespace