GitRouteRegistration.RegisterGitRoutes 方法 (GitRouteType, String, String, RouteValueDictionary, RouteValueDictionary, IRouteHandler)

“_git”方法区域注册路由

命名空间:  Microsoft.TeamFoundation.Git.Server.Routing
程序集:  Microsoft.TeamFoundation.Git.Server(在 Microsoft.TeamFoundation.Git.Server.dll 中)

语法

声明
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
)

参数

  • postRepositoryPath
    类型:System.String
    路由在该 URL 之后的“_git”部分提供的路径/模板

.NET Framework 安全性

请参阅

参考

GitRouteRegistration 类

RegisterGitRoutes 重载

Microsoft.TeamFoundation.Git.Server.Routing 命名空间