Compartilhar via


Método GitRouteRegistration.RegisterGitRoutes (GitRouteType, String, String, RouteValueDictionary, RouteValueDictionary, IRouteHandler, GitRouteRegistration.InstantiateRouteMethod)

Rotas do registro para a área da rota de “_git”

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

Sintaxe

'Declaração
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
)

Parâmetros

  • postRepositoryPath
    Tipo: System.String
    Roteamento o caminho/modelo que vem depois da parte “_git” URL

Segurança do .NET Framework

Consulte também

Referência

GitRouteRegistration Classe

Sobrecargas RegisterGitRoutes

Namespace Microsoft.TeamFoundation.Git.Server.Routing