Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpRouteCollection::TryGetValue Method (String^, IHttpRoute^)

 

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,
	[OutAttribute] 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.

Return to top
Show: