HttpRouteCollectionExtensions.MapResourceRoute Method (HttpRouteCollection, TeamFoundationHostType, String, String, Object, Object)

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function MapResourceRoute ( _
    routes As HttpRouteCollection, _
    hostType As TeamFoundationHostType, _
    name As String, _
    routeTemplate As String, _
    defaults As Object, _
    constraints As Object _
) As IHttpRoute
public static IHttpRoute MapResourceRoute(
    this HttpRouteCollection routes,
    TeamFoundationHostType hostType,
    string name,
    string routeTemplate,
    Object defaults,
    Object constraints
)
[ExtensionAttribute]
public:
static IHttpRoute^ MapResourceRoute(
    HttpRouteCollection^ routes, 
    TeamFoundationHostType hostType, 
    String^ name, 
    String^ routeTemplate, 
    Object^ defaults, 
    Object^ constraints
)
static member MapResourceRoute : 
        routes:HttpRouteCollection * 
        hostType:TeamFoundationHostType * 
        name:string * 
        routeTemplate:string * 
        defaults:Object * 
        constraints:Object -> IHttpRoute
public static function MapResourceRoute(
    routes : HttpRouteCollection, 
    hostType : TeamFoundationHostType, 
    name : String, 
    routeTemplate : String, 
    defaults : Object, 
    constraints : Object
) : IHttpRoute

Parameters

  • routes
    Type: HttpRouteCollection

Return Value

Type: IHttpRoute

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpRouteCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

HttpRouteCollectionExtensions Class

MapResourceRoute Overload

Microsoft.TeamFoundation.Framework.Server Namespace