Share via


GitRouteRegistration.RegisterGitRoutes Method (GitRouteType, String, String, RouteValueDictionary, RouteValueDictionary, IRouteHandler)

Register routes for the "_git" route area

Namespace:  Microsoft.TeamFoundation.Git.Server.Routing
Assembly:  Microsoft.TeamFoundation.Git.Server (in Microsoft.TeamFoundation.Git.Server.dll)

Syntax

'Declaration
Public Shared Sub RegisterGitRoutes ( _
    type As GitRouteType, _
    name As String, _
    postRepositoryPath As String, _
    defaults As RouteValueDictionary, _
    constraints As RouteValueDictionary, _
    routeHandler As IRouteHandler _
)
public static void RegisterGitRoutes(
    GitRouteType type,
    string name,
    string postRepositoryPath,
    RouteValueDictionary defaults,
    RouteValueDictionary constraints,
    IRouteHandler routeHandler
)
public:
static void RegisterGitRoutes(
    GitRouteType type, 
    String^ name, 
    String^ postRepositoryPath, 
    RouteValueDictionary^ defaults, 
    RouteValueDictionary^ constraints, 
    IRouteHandler^ routeHandler
)
static member RegisterGitRoutes : 
        type:GitRouteType * 
        name:string * 
        postRepositoryPath:string * 
        defaults:RouteValueDictionary * 
        constraints:RouteValueDictionary * 
        routeHandler:IRouteHandler -> unit
public static function RegisterGitRoutes(
    type : GitRouteType, 
    name : String, 
    postRepositoryPath : String, 
    defaults : RouteValueDictionary, 
    constraints : RouteValueDictionary, 
    routeHandler : IRouteHandler
)

Parameters

  • postRepositoryPath
    Type: System.String

    Route path/template that comes after the "_git" part of the url

.NET Framework Security

See Also

Reference

GitRouteRegistration Class

RegisterGitRoutes Overload

Microsoft.TeamFoundation.Git.Server.Routing Namespace