Export (0) Print
Expand All

HttpRouteCollection.TryGetValue Method

Gets the IHttpRoute with the specified route name.

Namespace:  System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)

public virtual bool TryGetValue(
	string name,
	out IHttpRoute route
)

Parameters

name
Type: System.String
The route name.
route
Type: System.Web.Http.Routing.IHttpRoute%
When this method returns, contains the IHttpRoute instance, if the route name is found; otherwise, null. This parameter is passed uninitialized.

Return Value

Type: System.Boolean
true if the collection contains an element with the specified name; otherwise, false.
Show:
© 2014 Microsoft