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
- routeData
Type: System.Web.Routing.RouteData
- key
Type: System.String
- 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
- 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.