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
type
Type: Microsoft.TeamFoundation.Git.Server.Routing.GitRouteTypeType of git route
name
Type: System.StringFriendly name for the route
postRepositoryPath
Type: System.StringRoute path/template that comes after the "_git" part of the url
defaults
Type: System.Web.Routing.RouteValueDictionaryDefault route values
constraints
Type: System.Web.Routing.RouteValueDictionaryRoute constraints
routeHandler
Type: System.Web.Routing.IRouteHandlerHandler for this route
createRouteMethod
Type: Microsoft.TeamFoundation.Git.Server.Routing.GitRouteRegistration.InstantiateRouteMethodDelegate to invoke to instantiate the route
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.