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


GitRouteExtensions.GetValue<T> Method (RouteValueDictionary, 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 GetValue(Of T) ( _
    values As RouteValueDictionary, _
    key As String, _
    defaultValue As T _
) As T
public static T GetValue<T>(
    this RouteValueDictionary values,
    string key,
    T defaultValue
)
[ExtensionAttribute]
public:
generic<typename T>
static T GetValue(
    RouteValueDictionary^ values, 
    String^ key, 
    T defaultValue
)
static member GetValue : 
        values:RouteValueDictionary * 
        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 RouteValueDictionary. 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

GetValue Overload

Microsoft.TeamFoundation.Git.Server.Routing Namespace