Share via


HttpRouteCollectionExtensions.MapResourceRoute Method (HttpRouteCollection, TeamFoundationHostType, String, String, 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 _
) As IHttpRoute
public static IHttpRoute MapResourceRoute(
    this HttpRouteCollection routes,
    TeamFoundationHostType hostType,
    string name,
    string routeTemplate,
    Object defaults
)
[ExtensionAttribute]
public:
static IHttpRoute^ MapResourceRoute(
    HttpRouteCollection^ routes, 
    TeamFoundationHostType hostType, 
    String^ name, 
    String^ routeTemplate, 
    Object^ defaults
)
static member MapResourceRoute : 
        routes:HttpRouteCollection * 
        hostType:TeamFoundationHostType * 
        name:string * 
        routeTemplate:string * 
        defaults:Object -> IHttpRoute
public static function MapResourceRoute(
    routes : HttpRouteCollection, 
    hostType : TeamFoundationHostType, 
    name : String, 
    routeTemplate : String, 
    defaults : 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