次の方法で共有


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 名前空間