Freigeben über


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

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, _
    createRouteMethod As GitRouteRegistration.InstantiateRouteMethod _
)
public static void RegisterGitRoutes(
    GitRouteType type,
    string name,
    string postRepositoryPath,
    RouteValueDictionary defaults,
    RouteValueDictionary constraints,
    IRouteHandler routeHandler,
    GitRouteRegistration.InstantiateRouteMethod createRouteMethod
)
public:
static void RegisterGitRoutes(
    GitRouteType type, 
    String^ name, 
    String^ postRepositoryPath, 
    RouteValueDictionary^ defaults, 
    RouteValueDictionary^ constraints, 
    IRouteHandler^ routeHandler, 
    GitRouteRegistration::InstantiateRouteMethod^ createRouteMethod
)
static member RegisterGitRoutes : 
        type:GitRouteType * 
        name:string * 
        postRepositoryPath:string * 
        defaults:RouteValueDictionary * 
        constraints:RouteValueDictionary * 
        routeHandler:IRouteHandler * 
        createRouteMethod:GitRouteRegistration.InstantiateRouteMethod -> unit
public static function RegisterGitRoutes(
    type : GitRouteType, 
    name : String, 
    postRepositoryPath : String, 
    defaults : RouteValueDictionary, 
    constraints : RouteValueDictionary, 
    routeHandler : IRouteHandler, 
    createRouteMethod : GitRouteRegistration.InstantiateRouteMethod
)

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