HttpRouteCollection.Contains Method
Determines whether the collection contains a specific IHttpRoute.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overridable Function Contains ( _
item As IHttpRoute _
) As Boolean
'Usage
Dim instance As HttpRouteCollection
Dim item As IHttpRoute
Dim returnValue As Boolean
returnValue = instance.Contains(item)
public virtual bool Contains(
IHttpRoute item
)
public:
virtual bool Contains(
IHttpRoute^ item
)
abstract Contains :
item:IHttpRoute -> bool
override Contains :
item:IHttpRoute -> bool
public function Contains(
item : IHttpRoute
) : boolean
Parameters
- item
Type: System.Web.Http.Routing.IHttpRoute
The object to locate in the collection.
Return Value
Type: System.Boolean
true if the IHttpRoute is found in the collection; otherwise, false.