GitRouteRegistration.RegisterGitRoutes メソッド (GitRouteType, String, String, RouteValueDictionary, RouteValueDictionary, IRouteHandler, GitRouteRegistration.InstantiateRouteMethod)
「」_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, _
createRouteMethod As GitRouteRegistration.InstantiateRouteMethod _
)
public static void RegisterGitRoutes(
GitRouteType type,
string name,
string postRepositoryPath,
RouteValueDictionary defaults,
RouteValueDictionary constraints,
IRouteHandler routeHandler,
GitRouteRegistration.InstantiateRouteMethod createRouteMethod
)
パラメーター
- type
型 : Microsoft.TeamFoundation.Git.Server.Routing.GitRouteType
git のルートの種類
- name
型 : System.String
ルートの表示名
- postRepositoryPath
型 : System.String
URL の_git 「」の部分の後にあるパスとテンプレートを決定します
- defaults
型 : System.Web.Routing.RouteValueDictionary
既定のルートの値
- constraints
型 : System.Web.Routing.RouteValueDictionary
ルートの制約
- routeHandler
型 : System.Web.Routing.IRouteHandler
このルートのハンドラー
- createRouteMethod
型 : Microsoft.TeamFoundation.Git.Server.Routing.GitRouteRegistration.InstantiateRouteMethod
ルートをインスタンス化するために呼び出すデリゲート
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。