Share via


GitRouteExtensions.GetRouteValue<T> Method (RouteData, String)

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetRouteValue(Of T) ( _
    routeData As RouteData, _
    key As String _
) As T
public static T GetRouteValue<T>(
    this RouteData routeData,
    string key
)
[ExtensionAttribute]
public:
generic<typename T>
static T GetRouteValue(
    RouteData^ routeData, 
    String^ key
)
static member GetRouteValue : 
        routeData:RouteData * 
        key:string -> 'T 
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

Return Value

Type: T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type RouteData. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

GitRouteExtensions Class

GetRouteValue Overload

Microsoft.TeamFoundation.Git.Server.Routing Namespace