Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the IHttpRoute with the specified route name.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overridable Function TryGetValue ( _
name As String, _
<OutAttribute> ByRef route As IHttpRoute _
) As Boolean
'Usage
Dim instance As HttpRouteCollection
Dim name As String
Dim route As IHttpRoute
Dim returnValue As Boolean
returnValue = instance.TryGetValue(name, _
route)
public virtual bool TryGetValue(
string name,
out IHttpRoute route
)
public:
virtual bool TryGetValue(
String^ name,
[OutAttribute] IHttpRoute^% route
)
abstract TryGetValue :
name:string *
route:IHttpRoute byref -> bool
override TryGetValue :
name:string *
route:IHttpRoute byref -> bool
public function TryGetValue(
name : String,
route : IHttpRoute
) : boolean
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.