GitRouteExtensions.GetValue<T> Method (RouteValueDictionary, String)
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 _
) As T
public static T GetValue<T>(
this RouteValueDictionary values,
string key
)
[ExtensionAttribute]
public:
generic<typename T>
static T GetValue(
RouteValueDictionary^ values,
String^ key
)
static member GetValue :
values:RouteValueDictionary *
key:string -> 'T
JScript does not support generic types or methods.
Type Parameters
- T
Parameters
- values
Type: System.Web.Routing.RouteValueDictionary
- key
Type: System.String
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
- 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.