Поделиться через


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

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, _
    defaultValue As T _
) As T
public static T GetRouteValue<T>(
    this RouteData routeData,
    string key,
    T defaultValue
)
[ExtensionAttribute]
public:
generic<typename T>
static T GetRouteValue(
    RouteData^ routeData, 
    String^ key, 
    T defaultValue
)
static member GetRouteValue : 
        routeData:RouteData * 
        key:string * 
        defaultValue:'T -> 'T 
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

  • defaultValue
    Type: T

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